Commit 18815cc8 by Kevin Falcone Committed by GitHub

Merge pull request #3771 from mitodl/blarghmatey/env_extra_updates

Added the option to split env_extras by app
parents f7a8b074 8f7d9bcf
......@@ -326,6 +326,8 @@ EDXAPP_FOOTER_ORGANIZATION_IMAGE: "images/logo.png"
EDXAPP_ENV_EXTRA: {}
EDXAPP_AUTH_EXTRA: {}
EDXAPP_LMS_ENV_EXTRA: "{{ EDXAPP_ENV_EXTRA }}"
EDXAPP_CMS_ENV_EXTRA: "{{ EDXAPP_ENV_EXTRA }}"
EDXAPP_LMS_AUTH_EXTRA: "{{ EDXAPP_AUTH_EXTRA }}"
EDXAPP_CMS_AUTH_EXTRA: "{{ EDXAPP_AUTH_EXTRA }}"
EDXAPP_ENABLE_MKTG_SITE: false
......@@ -1125,6 +1127,7 @@ cms_auth_config:
fs_root: "{{ edxapp_course_data_dir }}"
render_template: 'edxmako.shortcuts.render_to_string'
PARSE_KEYS: "{{ EDXAPP_PARSE_KEYS }}"
cms_env_config:
<<: *edxapp_generic_env
SITE_NAME: "{{ EDXAPP_CMS_SITE_NAME }}"
......
{% do cms_env_config.update(EDXAPP_ENV_EXTRA) %}
{% do cms_env_config.update(EDXAPP_CMS_ENV_EXTRA) %}
{% for key, value in cms_env_config.iteritems() -%}
{% if value == 'None' -%}
{% do cms_env_config.update({key: None }) %}
......
{% do lms_env_config.update(EDXAPP_ENV_EXTRA) %}
{% do lms_env_config.update(EDXAPP_LMS_ENV_EXTRA) %}
{% for key, value in lms_env_config.iteritems() -%}
{% if value == 'None' -%}
{% do lms_env_config.update({key: None }) %}
{% do lms_env_config.update({key: None }) %}
{%- endif %}
{%- endfor %}
{{ lms_env_config | to_nice_json }}
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