Skip to content

Commit fc45354

Browse files
committed
ssl_ca_certs should default to None, not "". (#2560)
1 parent c59d1ff commit fc45354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/danswer/configs/app_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#redis-backend-settings
168168
# should be one of "required", "optional", or "none"
169169
REDIS_SSL_CERT_REQS = os.getenv("REDIS_SSL_CERT_REQS", "none")
170-
REDIS_SSL_CA_CERTS = os.getenv("REDIS_SSL_CA_CERTS", "")
170+
REDIS_SSL_CA_CERTS = os.getenv("REDIS_SSL_CA_CERTS", None)
171171

172172
CELERY_RESULT_EXPIRES = int(os.environ.get("CELERY_RESULT_EXPIRES", 86400)) # seconds
173173

backend/danswer/redis/redis_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def create_pool(
4242
db: int = REDIS_DB_NUMBER,
4343
password: str = REDIS_PASSWORD,
4444
max_connections: int = REDIS_POOL_MAX_CONNECTIONS,
45-
ssl_ca_certs: str = REDIS_SSL_CA_CERTS,
45+
ssl_ca_certs: str | None = REDIS_SSL_CA_CERTS,
4646
ssl_cert_reqs: str = REDIS_SSL_CERT_REQS,
4747
ssl: bool = False,
4848
) -> redis.ConnectionPool:

0 commit comments

Comments
 (0)