mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-17 10:35:12 +00:00
ac7fe77280
From a deployment perspective, this release comes with an upgrade of the cs_comments_service (forums) and a change to the logging configuration.
27 lines
870 B
Python
27 lines
870 B
Python
import os
|
|
from ..aws import *
|
|
|
|
update_module_store_settings(MODULESTORE, doc_store_settings=DOC_STORE_CONFIG)
|
|
|
|
MEDIA_ROOT = "/openedx/data/uploads/"
|
|
|
|
# Change syslog-based loggers which don't work inside docker containers
|
|
LOGGING['handlers']['local'] = LOGGING['handlers']['console'].copy()
|
|
LOGGING['handlers']['tracking'] = LOGGING['handlers']['console'].copy()
|
|
|
|
# Create folders if necessary
|
|
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
|
|
if not os.path.exists(folder):
|
|
os.makedirs(folder)
|
|
|
|
ALLOWED_HOSTS = [
|
|
ENV_TOKENS.get('CMS_BASE'),
|
|
'127.0.0.1', 'localhost', 'studio.localhost',
|
|
'127.0.0.1:8000', 'localhost:8000',
|
|
'127.0.0.1:8001', 'localhost:8001',
|
|
]
|
|
|
|
DEFAULT_FROM_EMAIL = 'registration@' + ENV_TOKENS['LMS_BASE']
|
|
DEFAULT_FEEDBACK_EMAIL = 'feedback@' + ENV_TOKENS['LMS_BASE']
|
|
SERVER_EMAIL = 'devops@' + ENV_TOKENS['LMS_BASE']
|