SECURE_PROXY_SSL_HEADER for django-1.4 in envs/dev_ike for nginx ssl proxy

This commit is contained in:
ichuang
2012-08-10 16:24:32 -04:00
parent b159eb4825
commit f6e84e84da

View File

@@ -21,6 +21,8 @@ myhost = socket.gethostname()
if ('edxvm' in myhost) or ('ocw' in myhost):
MITX_FEATURES['DISABLE_LOGIN_BUTTON'] = True # auto-login with MIT certificate
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https') # django 1.4 for nginx ssl proxy
#-----------------------------------------------------------------------------
# disable django debug toolbars