Skip to content

Commit

Permalink
fix enabling ssl in connection pool (#2418)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo-danswer authored Sep 12, 2024
1 parent eebf98e commit 641690e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/danswer/redis/redis_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ def __new__(cls) -> "RedisPool":

def _init_pool(self) -> None:
if REDIS_SSL:
# Examples: https://github.com/redis/redis-py/issues/780
self._pool = redis.ConnectionPool(
host=REDIS_HOST,
port=REDIS_PORT,
db=REDIS_DB_NUMBER,
password=REDIS_PASSWORD,
max_connections=REDIS_POOL_MAX_CONNECTIONS,
ssl=True,
connection_class=redis.SSLConnection,
ssl_ca_certs=REDIS_SSL_CA_CERTS,
ssl_cert_reqs=REDIS_SSL_CERT_REQS,
)
Expand Down

0 comments on commit 641690e

Please sign in to comment.