mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-05-30 04:40:49 +00:00
afc4b15253
We achieve this thanks to a patch to edx-oauth2-provider: https://github.com/edx/edx-oauth2-provider/pull/59 The network alias was required to circumvent url validation by the oauth2 client creation tool. But the network alias was not compatible with k8s deployment.
34 lines
816 B
Python
34 lines
816 B
Python
from .common import *
|
|
|
|
SECRET_KEY = "{{ NOTES_SECRET_KEY }}"
|
|
ALLOWED_HOSTS = [
|
|
"localhost",
|
|
"notes",
|
|
"notes.localhost",
|
|
"{{ NOTES_HOST }}",
|
|
]
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.mysql",
|
|
"HOST": "{{ MYSQL_HOST }}",
|
|
"PORT": {{MYSQL_PORT}},
|
|
"NAME": "{{ NOTES_MYSQL_DATABASE }}",
|
|
"USER": "{{ NOTES_MYSQL_USERNAME }}",
|
|
"PASSWORD": "{{ NOTES_MYSQL_PASSWORD }}",
|
|
}
|
|
}
|
|
|
|
CLIENT_ID = "notes"
|
|
CLIENT_SECRET = "{{ NOTES_OAUTH2_SECRET }}"
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
"default": {
|
|
"ENGINE": "notesserver.highlight.ElasticsearchSearchEngine",
|
|
"URL": "http://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}/",
|
|
"INDEX_NAME": "notes",
|
|
}
|
|
}
|
|
|
|
LOGGING["handlers"]["local"] = LOGGING["handlers"]["console"].copy()
|