mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 10:05:18 +00:00
28 lines
745 B
Python
28 lines
745 B
Python
from .common import *
|
|
|
|
SECRET_KEY = '{{ NOTES_SECRET_KEY }}'
|
|
ALLOWED_HOSTS = ['localhost', 'notes', 'notes.openedx', 'notes.localhost', 'notes.{{ LMS_HOST }}']
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
'NAME': '{{ NOTES_MYSQL_DATABASE }}',
|
|
'USER': '{{ NOTES_MYSQL_USERNAME }}',
|
|
'PASSWORD': '{{ NOTES_MYSQL_PASSWORD }}',
|
|
'HOST': 'mysql',
|
|
}
|
|
}
|
|
|
|
CLIENT_ID = 'notes'
|
|
CLIENT_SECRET = '{{ NOTES_OAUTH2_SECRET }}'
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
'default': {
|
|
'ENGINE': 'notesserver.highlight.ElasticsearchSearchEngine',
|
|
'URL': 'http://elasticsearch:9200/',
|
|
'INDEX_NAME': 'notes',
|
|
},
|
|
}
|
|
|
|
LOGGING['handlers']['local'] = LOGGING['handlers']['console'].copy()
|