Added settings for Docker-based devstack
ECOM-6634
This commit is contained in:
committed by
Clinton Blackburn
parent
ae957709c9
commit
e7c0ed77e5
22
cms/envs/devstack_docker.py
Normal file
22
cms/envs/devstack_docker.py
Normal file
@@ -0,0 +1,22 @@
|
||||
""" 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
|
||||
LMS_ROOT_URL = 'http://{}:18000'.format(HOST)
|
||||
|
||||
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',
|
||||
})
|
||||
24
lms/envs/devstack_docker.py
Normal file
24
lms/envs/devstack_docker.py
Normal file
@@ -0,0 +1,24 @@
|
||||
""" 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
|
||||
LMS_ROOT_URL = 'http://{}:18000'.format(HOST)
|
||||
|
||||
ECOMMERCE_PUBLIC_URL_ROOT = "http://edx.devstack.ecommerce:18130"
|
||||
|
||||
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',
|
||||
})
|
||||
Reference in New Issue
Block a user