Commit f6e84e84 by ichuang

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

parent b159eb48
...@@ -21,6 +21,8 @@ myhost = socket.gethostname() ...@@ -21,6 +21,8 @@ myhost = socket.gethostname()
if ('edxvm' in myhost) or ('ocw' in myhost): if ('edxvm' in myhost) or ('ocw' in myhost):
MITX_FEATURES['DISABLE_LOGIN_BUTTON'] = True # auto-login with MIT certificate 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 # disable django debug toolbars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment