Fix redis ssl issues 3
This commit is contained in:
@@ -165,16 +165,9 @@ class BaseServiceSettings(BaseSettings):
|
||||
|
||||
if password:
|
||||
url = f"{protocol}://:{password}@{host}:{port}"
|
||||
if use_tls:
|
||||
# Use ssl_cert_reqs=none for self-signed certs in internal cluster
|
||||
# Still encrypted, just skips cert validation
|
||||
url += "?ssl_cert_reqs=none"
|
||||
print(f"[DEBUG REDIS_URL] Returning URL with auth and TLS: {url}", file=sys.stderr)
|
||||
return url
|
||||
url = f"{protocol}://{host}:{port}"
|
||||
if use_tls:
|
||||
# Use ssl_cert_reqs=none for self-signed certs in internal cluster
|
||||
url += "?ssl_cert_reqs=none"
|
||||
print(f"[DEBUG REDIS_URL] Returning URL without auth: {url}", file=sys.stderr)
|
||||
return url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user