updated config

This commit is contained in:
Alexander Karpov 2023-11-07 12:47:21 +03:00
parent 4df9bfb2ec
commit 3c32430e9e
2 changed files with 3 additions and 1 deletions

View File

@ -15,3 +15,5 @@ CELERY_BROKER_URL=redis://redis:6379/0
# Flower # Flower
CELERY_FLOWER_USER=debug CELERY_FLOWER_USER=debug
CELERY_FLOWER_PASSWORD=debug CELERY_FLOWER_PASSWORD=debug
ELASTIC_SEARCH=http://elasticsearch:9200/

View File

@ -612,7 +612,7 @@
HAYSTACK_CONNECTIONS = { HAYSTACK_CONNECTIONS = {
"default": { "default": {
"ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine", "ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine",
"URL": "http://127.0.0.1:9200/", # Assuming Elasticsearch is running on localhost "URL": env("ELASTIC_SEARCH", default="http://127.0.0.1:9200/"),
"INDEX_NAME": "haystack", "INDEX_NAME": "haystack",
"TIMEOUT": 60 * 5, "TIMEOUT": 60 * 5,
"BATCH_SIZE": 100, "BATCH_SIZE": 100,