From 0e5ade1cf5af8c515b492db421d216b1e5a6f865 Mon Sep 17 00:00:00 2001 From: johnpccd Date: Sun, 25 May 2025 13:28:10 +0200 Subject: [PATCH] fix ssl error --- src/services/vector_db.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/services/vector_db.py b/src/services/vector_db.py index c77ef0e..471f586 100644 --- a/src/services/vector_db.py +++ b/src/services/vector_db.py @@ -36,7 +36,7 @@ class VectorDatabaseService: api_key: API key for authentication (optional) collection_name: Name of the collection to use prefer_grpc: Whether to use gRPC instead of HTTP - https: Whether to use HTTPS. If None, auto-detect based on host + https: Whether to use HTTPS. If None, skip SSL """ self.host = host or settings.QDRANT_HOST self.port = port or settings.QDRANT_PORT @@ -49,17 +49,8 @@ class VectorDatabaseService: # Handle HTTPS setting properly if https is None: - # First check if explicitly set in environment - qdrant_https_env = os.getenv("QDRANT_HTTPS") - if qdrant_https_env is not None: - # Use the parsed boolean value from settings - https = settings.QDRANT_HTTPS - else: - # Auto-detect: Use HTTP for localhost and known development IPs, HTTPS for others - https = not (self.host in ["localhost", "127.0.0.1"] or self.host.startswith("192.168.") or self.host.startswith("10.")) - # Override for specific known HTTP-only servers - if self.host == "34.171.134.17": - https = False +#TODO ensure SSL + https = False logger.info(f"Connecting to Qdrant at {self.host}:{self.port} (HTTPS: {https}, gRPC: {prefer_grpc})")