Introduce `delete-elasticsearch` scripts for both Windows and Unix to stop, remove containers, and delete data volumes. Updated `Makefile` to include this command for easier management. Upgraded `django-elasticsearch-dsl` and related dependencies to their latest versions for compatibility. Breaking change: Updated Elasticsearch image and configuration to enable xpack security. Ensure environment variables are properly set.
21 lines
547 B
Python
21 lines
547 B
Python
from os import getenv
|
|
|
|
from schon.settings.base import DEBUG
|
|
|
|
ELASTICSEARCH_DSL = {
|
|
"default": {
|
|
"hosts": ["http://elasticsearch:9200"],
|
|
"basic_auth": ("elastic", getenv("ELASTIC_PASSWORD")),
|
|
"verify_certs": False,
|
|
"request_timeout": 30,
|
|
"ssl_show_warn": False,
|
|
"max_retries": 3,
|
|
"retry_on_timeout": True,
|
|
},
|
|
}
|
|
|
|
ELASTICSEARCH_DSL_AUTOSYNC = DEBUG
|
|
ELASTICSEARCH_DSL_PARALLEL = True
|
|
ELASTICSEARCH_DSL_SIGNAL_PROCESSOR = (
|
|
"django_elasticsearch_dsl.signals.CelerySignalProcessor"
|
|
)
|