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
OpenEdx
configuration
Commits
c20a44a7
Commit
c20a44a7
authored
Mar 15, 2016
by
zubair-arbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use django's storage backend ManifestStaticFilesStorage for static files versioning
ECOM-3905
parent
4412dec2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
playbooks/roles/credentials/defaults/main.yml
+1
-1
playbooks/roles/credentials/templates/edx/app/nginx/sites-available/credentials.j2
+1
-0
No files found.
playbooks/roles/credentials/defaults/main.yml
View file @
c20a44a7
...
...
@@ -121,7 +121,7 @@ CREDENTIALS_FILE_STORAGE_BACKEND:
STATIC_ROOT
:
'
{{
CREDENTIALS_STATIC_ROOT
}}'
MEDIA_URL
:
'
{{
CREDENTIALS_MEDIA_URL
}}'
STATIC_URL
:
'
{{
CREDENTIALS_STATIC_URL
}}'
STATICFILES_STORAGE
:
'
django.contrib.staticfiles.storage.StaticFilesStorage'
STATICFILES_STORAGE
:
'
django.contrib.staticfiles.storage.
Manifest
StaticFilesStorage'
DEFAULT_FILE_STORAGE
:
'
django.core.files.storage.FileSystemStorage'
# Note: the protocol for CORS whitelist values is necessary for matching the correct origin by nginx
...
...
playbooks/roles/credentials/templates/edx/app/nginx/sites-available/credentials.j2
View file @
c20a44a7
...
...
@@ -45,6 +45,7 @@ server {
location ~ ^{{ CREDENTIALS_STATIC_URL }}(?P<file>.*) {
root {{ CREDENTIALS_STATIC_ROOT }};
add_header Access-Control-Allow-Origin $cors_header always;
add_header Cache-Control "max-age=31536000";
try_files /$file =404;
}
...
...
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