Skip to content

Commit

Permalink
Add env REDIS_USE_SSL to allow redis to connect over ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed May 17, 2024
1 parent 93e63ea commit 427aecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ REDIS_PORT=6379
REDIS_DB=0
# No value = Python None
REDIS_PASSWORD
REDIS_USE_SSL=False

# In minutes, the time a cached remote event will expire at.
REDIS_EVENT_EXPIRE_TIME=15
Expand Down
1 change: 1 addition & 0 deletions backend/src/appointment/dependencies/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ def get_redis() -> Redis | None:
port=os.getenv('REDIS_PORT'),
db=os.getenv('REDIS_DB'),
password=os.getenv('REDIS_PASSWORD'),
ssl=os.getenv('REDIS_USE_SSL'),
decode_responses=True,
)

0 comments on commit 427aecc

Please sign in to comment.