Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Healthcheck not working with ALLOWED_HOSTS #31

Closed
samuel-p opened this issue Jun 21, 2020 · 5 comments
Closed

Healthcheck not working with ALLOWED_HOSTS #31

samuel-p opened this issue Jun 21, 2020 · 5 comments

Comments

@samuel-p
Copy link

The HEALTHCHECK does not work if you set the ALLOWED_HOSTS environment variable.

If set calling http://localhost:8000 will result in a 400 Bad Resuest and the container won't start. removing ALLOWED_HOSTS from environment fixes it, but is not permanent solution in my opinion.

@galexrt
Copy link
Owner

galexrt commented Jun 21, 2020

@samuel-p Can you check what happens if you add localhost to the ALLOWED_HOSTS list?

@samuel-p
Copy link
Author

@galexrt yes, if I add localhost to the ALLOWED_HOSTS list, it works.

@galexrt
Copy link
Owner

galexrt commented Jun 23, 2020

@samuel-p Do you see that as a valid solution to add localhost to the examples, etc, to include localhost by default?

@samuel-p
Copy link
Author

For me it's a valid solution, but I think it would be important to add a small note to the setup docs, if someone else has the same problem.

@galexrt
Copy link
Owner

galexrt commented Jun 23, 2020

@samuel-p I have updated the README and examples to have localhost included in the examples + added a note to the ALLOWED_HOSTS var description table.

Resolved by 6681abc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants