mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
[Fix] #1173 Nginx SSL redirect loop
Headers not being passed was causing nginx to redirect to SSL again & again.
This commit is contained in:
parent
11f3be10e2
commit
75e3bb65a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user