Skip to content

Commit 26cda25

Browse files
committed
feat: add Redis password configuration to Redis client in config.py
- Updated the Redis client initialization to include password retrieval from environment variables, enhancing security and flexibility in Redis connections.
1 parent 45ec362 commit 26cda25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Redis connection
2525
redis_client = redis.Redis(
2626
host=os.getenv('REDIS_HOST', 'localhost'),
27+
password=os.getenv('REDIS_PASSWORD', None),
2728
port=int(os.getenv('REDIS_PORT', 6379)),
2829
db=0,
2930
decode_responses=True

0 commit comments

Comments
 (0)