fix(docker): force https X-Forwarded-Proto & unset Forwarded

We'll just prefer falling back on X-Forwarded-For for now.
Forwarded is the newer header, we'll need to change this in
the near future.

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

View file

@ -135,9 +135,9 @@ http {
location / {
proxy_pass http://asgi_backend;
proxy_set_header Host $http_host;
proxy_set_header Forwarded "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Proto https;
}
}