Commit 5550d49d by Jesse Zoldak

Merge pull request #2287 from edx/zoldak/django-session-cookie

Wire in the SESSION_SAVE_EVERY_REQUEST django setting for profiling
parents 4199acc3 a6e63158
......@@ -539,6 +539,10 @@ EDXAPP_COMP_THEME_DIR: ""
EDXAPP_SOCIAL_AUTH_SAML_SP_PRIVATE_KEY: ''
EDXAPP_SOCIAL_AUTH_SAML_SP_PUBLIC_CERT: ''
# Session cookie setting
# Only set this to true for client side profiling, never for production
EDXAPP_SESSION_SAVE_EVERY_REQUEST: false
#-------- Everything below this line is internal to the role ------------
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
......@@ -838,6 +842,7 @@ generic_env_config: &edxapp_generic_env
XBLOCK_SETTINGS: "{{ EDXAPP_XBLOCK_SETTINGS }}"
EDXMKTG_USER_INFO_COOKIE_NAME: "{{ EDXAPP_EDXMKTG_USER_INFO_COOKIE_NAME }}"
COMP_THEME_DIR: "{{ EDXAPP_COMP_THEME_DIR }}"
SESSION_SAVE_EVERY_REQUEST: "{{ EDXAPP_SESSION_SAVE_EVERY_REQUEST }}"
lms_auth_config:
<<: *edxapp_generic_auth
......
......@@ -119,6 +119,10 @@ if [[ -z $enable_datadog ]]; then
enable_datadog="false"
fi
if [[ -z $enable_client_profiling ]]; then
enable_client_profiling="false"
fi
# Lowercase the dns name to deal with an ansible bug
dns_name="${dns_name,,}"
......@@ -173,6 +177,12 @@ EOF_AUTH
fi
if [[ $enable_client_profiling == "true" ]]; then
cat << EOF_PROFILING >> $extra_vars_file
EDXAPP_SESSION_SAVE_EVERY_REQUEST: True
EOF_PROFILING
fi
if [[ $edx_internal == "true" ]]; then
# if this isn't a public server add the github
# user and set edx_internal to True so that
......
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