Hardcode X-Forwarded-Proto to https (always behind Traefik)
This commit is contained in:
parent
d56d6afce7
commit
ac419d3c62
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ http {
|
|||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
proxy_http_version 1.1;
|
||||
|
|
@ -85,7 +85,7 @@ http {
|
|||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
|
||||
# Disable encoding so sub_filter can process the response
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue