diff --git a/nginx.conf b/nginx.conf index e61b649..942df99 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 "";