mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
fc69ef4b57
commit
c34844cbf6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue