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
de6c8ee3
Commit
de6c8ee3
authored
Feb 19, 2016
by
zubair-arbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide example for media and staic settings for AWS S3
parent
cab1b394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
playbooks/roles/credentials/defaults/main.yml
+11
-5
No files found.
playbooks/roles/credentials/defaults/main.yml
View file @
de6c8ee3
...
@@ -92,6 +92,11 @@ CREDENTIALS_USER_API_JWT_SECRET_KEY: 'lms-secret'
...
@@ -92,6 +92,11 @@ CREDENTIALS_USER_API_JWT_SECRET_KEY: 'lms-secret'
# Example settings to use Amazon S3 as files storage backend with django storages:
# Example settings to use Amazon S3 as files storage backend with django storages:
# https://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#amazon-s3
# https://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#amazon-s3
#
#
# CREDENTIALS_MEDIA_ROOT: 'media'
# CREDENTIALS_MEDIA_URL: 'https://mybucket.s3.amazonaws.com/media/'
# CREDENTIALS_STATIC_ROOT: 'static'
# CREDENTIALS_STATIC_URL: 'https://mybucket.s3.amazonaws.com/static/'
#
# CREDENTIALS_FILE_STORAGE_BACKEND:
# CREDENTIALS_FILE_STORAGE_BACKEND:
# AWS_STORAGE_BUCKET_NAME: 'mybucket'
# AWS_STORAGE_BUCKET_NAME: 'mybucket'
# AWS_CUSTOM_DOMAIN: 'mybucket.s3.amazonaws.com'
# AWS_CUSTOM_DOMAIN: 'mybucket.s3.amazonaws.com'
...
@@ -104,11 +109,12 @@ CREDENTIALS_USER_API_JWT_SECRET_KEY: 'lms-secret'
...
@@ -104,11 +109,12 @@ CREDENTIALS_USER_API_JWT_SECRET_KEY: 'lms-secret'
# Cache-Control: max-age-31536000
# Cache-Control: max-age-31536000
# Access-Control-Allow-Origin: 'PUT-YOUR-HOSTNAME-HERE'
# Access-Control-Allow-Origin: 'PUT-YOUR-HOSTNAME-HERE'
#
#
# STATIC_ROOT: 'static'
# MEDIA_ROOT: '{{ CREDENTIALS_MEDIA_ROOT }}'
# STATIC_URL: 'https://mybucket.s3.amazonaws.com/static/'
# MEDIA_URL: '{{ CREDENTIALS_MEDIA_URL }}'
# COMPRESS_URL: 'https://mybucket.s3.amazonaws.com/static/'
# STATIC_ROOT: '{{ CREDENTIALS_STATIC_ROOT }}'
# MEDIA_ROOT: 'media'
# STATIC_URL: '{{ CREDENTIALS_STATIC_URL }}'
# MEDIA_URL: 'https://mybucket.s3.amazonaws.com/media/'
# COMPRESS_ROOT: {{ CREDENTIALS_STATIC_ROOT }}
# COMPRESS_URL: '{{ CREDENTIALS_STATIC_URL }}'
# COMPRESS_STORAGE: 'credentials.apps.core.s3utils.StaticS3BotoStorage'
# COMPRESS_STORAGE: 'credentials.apps.core.s3utils.StaticS3BotoStorage'
# STATICFILES_STORAGE: 'credentials.apps.core.s3utils.StaticS3BotoStorage'
# STATICFILES_STORAGE: 'credentials.apps.core.s3utils.StaticS3BotoStorage'
# DEFAULT_FILE_STORAGE: 'credentials.apps.core.s3utils.MediaS3BotoStorage'
# DEFAULT_FILE_STORAGE: 'credentials.apps.core.s3utils.MediaS3BotoStorage'
...
...
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