Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a6e63158
Commit
a6e63158
authored
Sep 15, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameterize EDXAPP_SESSION_SAVE_EVERY_REQUEST for client profiling
parent
4199acc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
playbooks/roles/edxapp/defaults/main.yml
+5
-0
util/jenkins/ansible-provision.sh
+10
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
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
...
...
util/jenkins/ansible-provision.sh
View file @
a6e63158
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment