Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
6f198421
Commit
6f198421
authored
Jul 26, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an aws settings for the cms
parent
adce80c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
cms/envs/aws.py
+45
-0
No files found.
cms/envs/aws.py
0 → 100644
View file @
6f198421
"""
This is the default template for our main set of AWS servers.
"""
import
json
from
.logsettings
import
get_logger_config
from
.common
import
*
############################### ALWAYS THE SAME ################################
DEBUG
=
False
TEMPLATE_DEBUG
=
False
EMAIL_BACKEND
=
'django_ses.SESBackend'
SESSION_ENGINE
=
'django.contrib.sessions.backends.cache'
DEFAULT_FILE_STORAGE
=
'storages.backends.s3boto.S3BotoStorage'
########################### NON-SECURE ENV CONFIG ##############################
# Things like server locations, ports, etc.
with
open
(
ENV_ROOT
/
"env.json"
)
as
env_file
:
ENV_TOKENS
=
json
.
load
(
env_file
)
SITE_NAME
=
ENV_TOKENS
[
'SITE_NAME'
]
LOG_DIR
=
ENV_TOKENS
[
'LOG_DIR'
]
CACHES
=
ENV_TOKENS
[
'CACHES'
]
for
feature
,
value
in
ENV_TOKENS
.
get
(
'MITX_FEATURES'
,
{})
.
items
():
MITX_FEATURES
[
feature
]
=
value
LOGGING
=
get_logger_config
(
LOG_DIR
,
logging_env
=
ENV_TOKENS
[
'LOGGING_ENV'
],
syslog_addr
=
(
ENV_TOKENS
[
'SYSLOG_SERVER'
],
514
),
debug
=
False
)
REPOS
=
ENV_TOKENS
[
'REPOS'
]
############################## SECURE AUTH ITEMS ###############################
# Secret things: passwords, access keys, etc.
with
open
(
ENV_ROOT
/
"auth.json"
)
as
auth_file
:
AUTH_TOKENS
=
json
.
load
(
auth_file
)
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
MODULESTORE
=
AUTH_TOKENS
[
'MODULESTORE'
]
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