Skip to content

Commit

Permalink
Added use_ssl and verify certs for https schema for ES connection con…
Browse files Browse the repository at this point in the history
…figuration
  • Loading branch information
snyaggarwal committed Jul 31, 2023
1 parent 208b22f commit eb87ab9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@
ES_SCHEME = os.environ.get('ES_SCHEME', 'http')
ELASTICSEARCH_DSL = {
'default': {
'hosts': ES_HOSTS.split(',') if ES_HOSTS else [ES_HOST + ':' + ES_PORT]
'hosts': ES_HOSTS.split(',') if ES_HOSTS else [ES_HOST + ':' + ES_PORT],
'use_ssl': ES_SCHEME == 'https',
'verify_certs': ES_SCHEME == 'https',
},
}

Expand Down

0 comments on commit eb87ab9

Please sign in to comment.