[Fix] #1173 Nginx SSL redirect loop

Headers not being passed was causing nginx to redirect to SSL again & again.
This commit is contained in:
Ashish Patil 2017-05-18 22:55:15 +04:00 committed by GitHub
parent 11f3be10e2
commit 75e3bb65a4

View File

@ -83,6 +83,8 @@ http {
# cookiecutter-django app
location @proxy_to_app {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;