diff --git a/vacancies/conf/settings.py b/vacancies/conf/settings.py index be1898f..d1e2c6d 100644 --- a/vacancies/conf/settings.py +++ b/vacancies/conf/settings.py @@ -165,6 +165,6 @@ LOGGING = { }, } -CLICKHOUSE_CLIENT = clickhouse_connect.create_client(host="127.0.0.1", port=18123) +CLICKHOUSE_CLIENT = clickhouse_connect.create_client(host=os.getenv("CLICKHOUSE_HOST", "127.0.0.1"), port=int(os.getenv("CLICKHOUSE_PORT", "18123"))) -QDARNT_CLIENT = QdrantClient(url="http://localhost:6333") +QDARNT_CLIENT = QdrantClient(url=os.getenv("QDRANT_URL", "http://localhost:6333"))