debian: set SECURE_PROXY_SSL_HEADER for nginx/runserver integration (#16863)
This commit is contained in:
parent
ff5a70550f
commit
62e597e157
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue