Commit 656ee847 by jarv

Merge pull request #449 from MITx/feature/dave/wiki_proxy

Config changes relating to course server split
parents 53006700 83ea5efa
...@@ -56,3 +56,7 @@ AWS_SECRET_ACCESS_KEY = AUTH_TOKENS["AWS_SECRET_ACCESS_KEY"] ...@@ -56,3 +56,7 @@ AWS_SECRET_ACCESS_KEY = AUTH_TOKENS["AWS_SECRET_ACCESS_KEY"]
DATABASES = AUTH_TOKENS['DATABASES'] DATABASES = AUTH_TOKENS['DATABASES']
XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE'] XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
if 'COURSE_ID' in ENV_TOKENS:
ASKBOT_URL = "courses/{0}/discussions/".format(ENV_TOKENS['COURSE_ID'])
...@@ -61,6 +61,11 @@ http { ...@@ -61,6 +61,11 @@ http {
location /courses/MITx/6.002x/2012_Fall/ { location /courses/MITx/6.002x/2012_Fall/ {
proxy_pass http://course_mitx_6002_2012_fall; proxy_pass http://course_mitx_6002_2012_fall;
} }
location ~ /courses/([^/]*)/([^/]*)/([^/]*)/(course_wiki|wiki) {
proxy_pass http://portal;
}
} }
} }
......
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