Set X-Forwarded-Proto to https in nginx.conf to prevent issues with redirect_to and https:// [ci skip]

This commit is contained in:
Dennis Schubert 2012-01-09 02:31:31 +01:00
parent c6f11f691d
commit 5a9b17567c

View file

@ -80,6 +80,7 @@ http {
location / {
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 https;
proxy_set_header Host $http_host;
proxy_redirect off;