1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-29 10:56:18 +02:00

Merge pull request #1185 from kressh/master

Set proper X-Forwarded-Ssl for SSL-terminated setups
This commit is contained in:
Nicolas Duchon 2021-05-05 16:32:47 +02:00 committed by GitHub
commit e3e8d24930
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,8 +97,8 @@ server_names_hash_bucket_size 128;
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;
{{ end }}
# Set appropriate X-Forwarded-Ssl header
map $scheme $proxy_x_forwarded_ssl {
# Set appropriate X-Forwarded-Ssl header based on $proxy_x_forwarded_proto
map $proxy_x_forwarded_proto $proxy_x_forwarded_ssl {
default off;
https on;
}