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
9fe08b47
Commit
9fe08b47
authored
Feb 08, 2016
by
zubair-arbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add s3 backend configuration settings
ECOM-3605
parent
9852155c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
playbooks/roles/credentials/defaults/main.yml
+31
-6
No files found.
playbooks/roles/credentials/defaults/main.yml
View file @
9fe08b47
...
...
@@ -20,7 +20,7 @@ CREDENTIALS_NGINX_PORT: 18150
CREDENTIALS_SSL_NGINX_PORT
:
48150
CREDENTIALS_DEFAULT_DB_NAME
:
'
credentials'
CREDENTIALS_MYSQL
:
'
localhost'
CREDENTIALS_MYSQL
_HOST
:
'
localhost'
# MySQL usernames are limited to 16 characters
CREDENTIALS_MYSQL_USER
:
'
credentials001'
CREDENTIALS_MYSQL_PASSWORD
:
'
password'
...
...
@@ -32,14 +32,14 @@ CREDENTIALS_DATABASES:
NAME
:
'
{{
CREDENTIALS_DEFAULT_DB_NAME
}}'
USER
:
'
{{
CREDENTIALS_MYSQL_USER
}}'
PASSWORD
:
'
{{
CREDENTIALS_MYSQL_PASSWORD
}}'
HOST
:
'
{{
CREDENTIALS_MYSQL
}}'
HOST
:
'
{{
CREDENTIALS_MYSQL
_HOST
}}'
PORT
:
'
3306'
ATOMIC_REQUESTS
:
true
CONN_MAX_AGE
:
60
CREDENTIALS_DB_ADMIN_USER
:
'
root'
CREDENTIALS_DB_ADMIN_PASSWORD
:
'
'
CREDENTIALS_MYSQL_MATCHER
:
'
localhost
'
CREDENTIALS_MYSQL_MATCHER
:
'
{{
CREDENTIALS_MYSQL_HOST
}}
'
CREDENTIALS_MEMCACHE
:
[
'
memcache'
]
...
...
@@ -89,11 +89,37 @@ CREDENTIALS_USER_API_URL: 'https://127.0.0.1:8000/api/user/v1/'
CREDENTIALS_USER_API_JWT_AUDIENCE
:
'
lms-key'
CREDENTIALS_USER_API_JWT_SECRET_KEY
:
'
lms-secret'
# 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
#
# CREDENTIALS_FILE_STORAGE_BACKEND:
# AWS_STORAGE_BUCKET_NAME: mybucket
# AWS_CUSTOM_DOMAIN: mybucket.s3.amazonaws.com
# AWS_ACCESS_KEY_ID: XXXAWS_ACCESS_KEYXXX
# AWS_SECRET_ACCESS_KEY: XXXAWS_SECRETY_KEYXXX
# AWS_QUERYSTRING_AUTH: False
# AWS_QUERYSTRING_EXPIRE: False
# AWS_DEFAULT_ACL: ''
# AWS_HEADERS:
# Cache-Control: max-age-31536000
# Access-Control-Allow-Origin: PUT YOUR HOSTNAME HERE
#
# COMPRESS_URL: 'https://mybucket.s3.amazonaws.com/'
# STATIC_URL: 'https://mybucket.s3.amazonaws.com/'
# COMPRESS_ROOT: {{ CREDENTIALS_STATIC_ROOT }}
# COMPRESS_STORAGE: storages.backends.s3boto.S3BotoStorage
# STATICFILES_STORAGE: storages.backends.s3boto.S3BotoStorage
# DEFAULT_FILE_STORAGE: storages.backends.s3boto.S3BotoStorage
CREDENTIALS_FILE_STORAGE_BACKEND
:
DEFAULT_FILE_STORAGE
:
'
django.core.files.storage.DefaultStorage'
CREDENTIALS_SERVICE_CONFIG
:
SECRET_KEY
:
'
{{
CREDENTIALS_SECRET_KEY
}}'
TIME_ZONE
:
'
{{
CREDENTIALS_TIME_ZONE
}}'
LANGUAGE_CODE
:
'
{{
CREDENTIALS_LANGUAGE_CODE
}}'
OAUTH2_PROVIDER_URL
:
'
{{
CREDENTIALS_OAUTH_URL_ROOT
}}/oauth2'
SOCIAL_AUTH_EDX_OIDC_KEY
:
'
{{
CREDENTIALS_SOCIAL_AUTH_EDX_OIDC_KEY
}}'
SOCIAL_AUTH_EDX_OIDC_SECRET
:
'
{{
CREDENTIALS_SOCIAL_AUTH_EDX_OIDC_SECRET
}}'
SOCIAL_AUTH_EDX_OIDC_ID_TOKEN_DECRYPTION_KEY
:
'
{{
CREDENTIALS_SOCIAL_AUTH_EDX_OIDC_SECRET
}}'
...
...
@@ -113,9 +139,8 @@ CREDENTIALS_SERVICE_CONFIG:
PLATFORM_NAME
:
'
{{
CREDENTIALS_PLATFORM_NAME
}}'
AWS_STORAGE_BUCKET_NAME
:
'
'
AWS_ACCESS_KEY_ID
:
'
'
AWS_SECRET_ACCESS_KEY
:
'
'
# Set credentials files storage backend
FILE_STORAGE_BACKEND
:
'
{{
CREDENTIALS_FILE_STORAGE_BACKEND
}}'
# credentials service user in programs service and lms
CREDENTIALS_SERVICE_USER
:
'
{{
CREDENTIALS_SERVICE_USER
}}'
...
...
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