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}, }