fix: specify elasticsearch scheme

Add ELASTICSEARCH_SCHEME in ELASTICSEARCH_DSL to avoid an error
when ES is implemented with SSL
This commit is contained in:
Andrés González 2022-09-02 11:44:53 -03:00 committed by Régis Behmo
parent 19fef3d2d4
commit 58b38037a1

View File

@ -23,7 +23,11 @@ DATABASES = {
CLIENT_ID = "notes" CLIENT_ID = "notes"
CLIENT_SECRET = "{{ NOTES_OAUTH2_SECRET }}" CLIENT_SECRET = "{{ NOTES_OAUTH2_SECRET }}"
ELASTICSEARCH_DSL = {'default': {'hosts': '{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}'}} ELASTICSEARCH_DSL = {
'default': {
'hosts': '{{ ELASTICSEARCH_SCHEME }}://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}'
}
}
LOGGING = { LOGGING = {
"version": 1, "version": 1,