From 7dede656b281daf673e38232684dd6462ff437b2 Mon Sep 17 00:00:00 2001 From: Suchandra Thapa Date: Mon, 19 Aug 2024 19:44:15 -1000 Subject: [PATCH] nail down env variable for ES config --- froide/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/froide/settings.py b/froide/settings.py index 4afabed18..daa4acd69 100644 --- a/froide/settings.py +++ b/froide/settings.py @@ -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}, }