devstack_docker.py 820 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
""" Overrides for Docker-based devstack. """

from .devstack import *  # pylint: disable=wildcard-import, unused-wildcard-import

# Docker does not support the syslog socket at /dev/log. Rely on the console.
LOGGING['handlers']['local'] = LOGGING['handlers']['tracking'] = {
    'class': 'logging.NullHandler',
}

LOGGING['loggers']['tracking']['handlers'] = ['console']

HOST = 'edx.devstack.edxapp:18000'
SITE_NAME = HOST
14
LMS_ROOT_URL = 'http://{}'.format(HOST)
15

16 17 18
# This is the public-facing host used for previews
LMS_BASE = 'localhost:18000'

19 20 21 22 23 24 25
OAUTH_OIDC_ISSUER = '{}/oauth2'.format(LMS_ROOT_URL)

JWT_AUTH.update({
    'JWT_SECRET_KEY': 'lms-secret',
    'JWT_ISSUER': OAUTH_OIDC_ISSUER,
    'JWT_AUDIENCE': 'lms-key',
})
26 27 28 29 30

FEATURES.update({
    'ENABLE_COURSEWARE_INDEX': False,
    'ENABLE_LIBRARY_INDEX': False,
})