Skip to content

Commit

Permalink
nail down env variable for ES config
Browse files Browse the repository at this point in the history
  • Loading branch information
sthapa committed Aug 20, 2024
1 parent 3523e62 commit 7dede65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def STATICFILES_DIRS(self):
# ######## Search ###########

ELASTICSEARCH_INDEX_PREFIX = "froide"
ELASTICSEARCH_HOST = values.Value("localhost")
ELASTICSEARCH_HOST = values.Value("localhost", environ=True, environ_name="ELASTICSEARCH_HOST")
ELASTICSEARCH_DSL = {
"default": {"hosts": "http://%s:9200" % ELASTICSEARCH_HOST},
}
Expand Down

0 comments on commit 7dede65

Please sign in to comment.