Specifying hostname which Kamal Proxy uses to perform health check #1492
Unanswered
LondonAppDev
asked this question in
Q&A
Replies: 1 comment
-
You can fix this by adding the health endpoint as middleware before Django's SecurityMiddleware: #992 Make sure to commit first, and then run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to use Kamal to deploy a Django app.
Django requires an
ALLOWED_HOSTS
configuration value which specifies which hostnames are allowed to make requests to the running application. This is a security mechanism to protect against HTTP Host Header attacks.The problem is the Kamal Proxy health check is making requests to the container ID, so I'm getting failures like this:
Has anyone faced this issue before? Is there a way to make the health check use the container name?
Thank in advance.
PS. This tool is a game changer for simplifying Docker deployment.
Beta Was this translation helpful? Give feedback.
All reactions