From 066dcfabc831603912a8a827f70b48bf7d5c29f0 Mon Sep 17 00:00:00 2001 From: ichuang Date: Mon, 28 May 2012 10:09:12 -0400 Subject: [PATCH] updates to envs.dev_ike for dogfood / edx4edx dev server --- envs/dev_ike.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/envs/dev_ike.py b/envs/dev_ike.py index 2163cd30e4..d59876be1d 100644 --- a/envs/dev_ike.py +++ b/envs/dev_ike.py @@ -7,17 +7,21 @@ sessions. Assumes structure: /mitx # The location of this repo /log # Where we're going to write log files """ + +MITX_ROOT_URL = '/mitx2' + from envs.common import * from envs.logsettings import get_logger_config from dev import * +MITX_ROOT_URL = '/mitx2' + #----------------------------------------------------------------------------- # ichuang DEBUG = True ENABLE_MULTICOURSE = True # set to False to disable multicourse display (see lib.util.views.mitxhome) QUICKEDIT = True -MITX_ROOT_URL = '' COURSE_SETTINGS = {'6.002_Spring_2012': {'number' : '6.002x', 'title' : 'Circuits and Electronics', @@ -53,3 +57,18 @@ COURSE_SETTINGS = {'6.002_Spring_2012': {'number' : '6.002x', #----------------------------------------------------------------------------- +MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ( + 'ssl_auth.ssl_auth.NginxProxyHeaderMiddleware', # ssl authentication behind nginx proxy + ) + +AUTHENTICATION_BACKENDS = ( + 'ssl_auth.ssl_auth.SSLLoginBackend', + 'django.contrib.auth.backends.ModelBackend', + ) + +INSTALLED_APPS = INSTALLED_APPS + ( + 'ssl_auth', + ) + +LOGIN_REDIRECT_URL = MITX_ROOT_URL + '/' +LOGIN_URL = MITX_ROOT_URL + '/'