debian: set SECURE_PROXY_SSL_HEADER for nginx/runserver integration (#16863)

This commit is contained in:
Frédéric Péters 2017-12-03 13:11:30 +01:00
parent ff5a70550f
commit 62e597e157
1 changed files with 3 additions and 0 deletions

View File

@ -204,6 +204,9 @@ SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_COOKIE_AGE = 36000 # 10h
# make it easier to use runserver behind nginx as reverse proxy
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
if not 'MIDDLEWARE_CLASSES' in globals():
MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES