[Fix] #1173 Nginx SSL redirect loop (#1174)

Headers not being passed was causing nginx to redirect to SSL again & again.
This commit is contained in:
Ashish Patil 2017-06-21 00:33:39 +04:00 committed by Shupeyko Nikita
parent 83c8594203
commit cabcc7b106

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;