mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 09:48:14 +00:00
Set proper X-Forwarded-Ssl for SSL-terminated setups
This commit is contained in:
parent
e80fc0b304
commit
330d2cdc0e
@ -51,8 +51,8 @@ server_names_hash_bucket_size 128;
|
|||||||
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;
|
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
# Set appropriate X-Forwarded-Ssl header
|
# Set appropriate X-Forwarded-Ssl header based on $proxy_x_forwarded_proto
|
||||||
map $scheme $proxy_x_forwarded_ssl {
|
map $proxy_x_forwarded_proto $proxy_x_forwarded_ssl {
|
||||||
default off;
|
default off;
|
||||||
https on;
|
https on;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user