Skip to content

Commit 4d7c5cb

Browse files
committed
fix: add ESHOST
1 parent 8d58161 commit 4d7c5cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

manatee/settings.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@
149149
ROOT_URLCONF = 'manatee.urls'
150150

151151
# Modify this line as needed for your project to connect to elasticsearch with a password that you generate
152-
ELASTICSEARCH_CONNECTION_OPTIONS = {"request_timeout": 30, "verify_certs": False, "basic_auth": ("elastic", "E1asticSearchforArche5")}
152+
ES_TIMEOUT = int(os.getenv("ES_TIMEOUT", "60"))
153+
ELASTICSEARCH_CONNECTION_OPTIONS = {"request_timeout": ES_TIMEOUT, "verify_certs": False, "basic_auth": ("elastic", "E1asticSearchforArche5")}
154+
ELASTICSEARCH_HOSTS = [{"scheme": "http", "host": os.environ.get("ESHOST", "localhost"), "port": int(os.environ.get("ESPORT", 9200))}]
153155

154156
# If you need to connect to Elasticsearch via an API key instead of username/password, use the syntax below:
155157
# ELASTICSEARCH_CONNECTION_OPTIONS = {"timeout": 30, "verify_certs": False, "api_key": "<ENCODED_API_KEY>"}
@@ -227,9 +229,13 @@
227229
"oauth2_provider",
228230
"django_celery_results",
229231
"compressor",
232+
"dauthz.apps.DauthzConfig",
230233
# "silk",
231234
"manatee",
235+
"arches_orm.arches_django.apps.ArchesORMConfig",
232236
)
237+
if DEBUG:
238+
INSTALLED_APPS = (*INSTALLED_APPS, "debug_toolbar",)
233239

234240
ARCHES_APPLICATIONS = ()
235241

0 commit comments

Comments
 (0)