Explorar o código

Merge pull request #1185 from kressh/master

Set proper X-Forwarded-Ssl for SSL-terminated setups
Nicolas Duchon %!s(int64=4) %!d(string=hai) anos
pai
achega
e3e8d24930
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      nginx.tmpl

+ 2 - 2
nginx.tmpl

@@ -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;
 }