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
f8419b6a
Commit
f8419b6a
authored
Sep 13, 2017
by
wajeeha-khalid
Committed by
Fred Smith
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated with minor fixes requested
parent
df863e13
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
playbooks/roles/edxapp/defaults/main.yml
+2
-2
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/extra_locations_lms.j2
+2
-2
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+1
-1
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/static-files-extra.j2
+2
-2
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
f8419b6a
...
@@ -660,8 +660,8 @@ EDXAPP_BLOCK_STRUCTURES_SETTINGS:
...
@@ -660,8 +660,8 @@ EDXAPP_BLOCK_STRUCTURES_SETTINGS:
EDXAPP_PARENTAL_CONSENT_AGE_LIMIT
:
13
EDXAPP_PARENTAL_CONSENT_AGE_LIMIT
:
13
# Scorm Xblock configurations
# Scorm Xblock configurations
EDXAPP_SCORM_PKG_STORAGE_DIR
:
"
"
EDXAPP_SCORM_PKG_STORAGE_DIR
:
!!null
EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT
:
"
"
EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT
:
!!null
#-------- Everything below this line is internal to the role ------------
#-------- Everything below this line is internal to the role ------------
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/extra_locations_lms.j2
View file @
f8419b6a
{% if EDXAPP_SCORM_PKG_STORAGE_DIR %}
{% if EDXAPP_SCORM_PKG_STORAGE_DIR %}
location ~ ^/{{ EDXAPP_MEDIA_URL }}/{{ EDXAPP_
XBLOCK_SETTINGS.ScormXBlock.SCORM_PKG_STORAGE_DIR or EDXAPP_SCORM_PKG_STORAGE_DIR
}}/(?P<file>.*) {
location ~ ^/{{ EDXAPP_MEDIA_URL }}/{{ EDXAPP_
SCORM_PKG_STORAGE_DIR
}}/(?P<file>.*) {
add_header 'Access-Control-Allow-Origin' $cors_origin;
add_header 'Access-Control-Allow-Origin' $cors_origin;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
root {{ edxapp_media_dir }}/{{ EDXAPP_
XBLOCK_SETTINGS.ScormXBlock.SCORM_PKG_STORAGE_DIR or EDXAPP_SCORM_PKG_STORAGE_DIR
}};
root {{ edxapp_media_dir }}/{{ EDXAPP_
SCORM_PKG_STORAGE_DIR
}};
try_files /$file =404;
try_files /$file =404;
expires 31536000s;
expires 31536000s;
}
}
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
f8419b6a
...
@@ -44,7 +44,7 @@ geo $http_x_forwarded_for $embargo {
...
@@ -44,7 +44,7 @@ geo $http_x_forwarded_for $embargo {
{%- endif %}
{%- endif %}
{% if EDXAPP_CORS_ORIGIN_WHITELIST %}
{% if EDXAPP_CORS_ORIGIN_WHITELIST
|length > 0
%}
# The Origin request header indicates where a fetch originates from. It doesn't include any path information,
# The Origin request header indicates where a fetch originates from. It doesn't include any path information,
# but only the server name (e.g. https://www.example.com).
# but only the server name (e.g. https://www.example.com).
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin for details.
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin for details.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/static-files-extra.j2
View file @
f8419b6a
{% if EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT %}
{% if EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT %}
# w/in scorm/, override default return 403 for these file types
# w/in scorm/, override default return 403 for these file types
location ~ ^/static/scorm/(?:.*)(?:\.xml|\.json) {
location ~ ^/static/scorm/(?:.*)(?:\.xml|\.json) {
try_files /{{ EDXAPP_
XBLOCK_SETTINGS.ScormXBlock.SCORM_PLAYER_LOCAL_STORAGE_ROOT or EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT
}}/$file =404;
try_files /{{ EDXAPP_
SCORM_PLAYER_LOCAL_STORAGE_ROOT
}}/$file =404;
}
}
location ~ "/scorm/(?P<file>.*)" {
location ~ "/scorm/(?P<file>.*)" {
add_header 'Access-Control-Allow-Origin' $cors_origin;
add_header 'Access-Control-Allow-Origin' $cors_origin;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
try_files /{{ EDXAPP_
XBLOCK_SETTINGS.ScormXBlock.SCORM_PLAYER_LOCAL_STORAGE_ROOT or EDXAPP_SCORM_PLAYER_LOCAL_STORAGE_ROOT
}}/$file =404;
try_files /{{ EDXAPP_
SCORM_PLAYER_LOCAL_STORAGE_ROOT
}}/$file =404;
}
}
{% endif %}
{% endif %}
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