fix(docker): add more proxy headers

https://docs.gunicorn.org/en/18.0/settings.html

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-15 19:42:35 -08:00
parent ca0f462810
commit ef46a8615b
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -136,8 +136,10 @@ http {
proxy_pass http://asgi_backend; proxy_pass http://asgi_backend;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header Forwarded ""; proxy_set_header Forwarded "";
proxy_set_header X-Forwarded-Protocol ssl;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwaded-Ssl on;
} }
} }