Merge pull request #143 from korjavin/redis_env_fix

fix: update Redis SSL environment variable handling
This commit is contained in:
Marko Kraemer 2025-04-26 04:27:56 -07:00 committed by GitHub
commit b784007ab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ def initialize():
redis_host = os.getenv('REDIS_HOST', 'redis')
redis_port = int(os.getenv('REDIS_PORT', 6379))
redis_password = os.getenv('REDIS_PASSWORD', '')
redis_ssl = os.getenv('REDIS_SSL', False)
# Convert string 'True'/'False' to boolean
redis_ssl_str = os.getenv('REDIS_SSL', 'False')
redis_ssl = redis_ssl_str.lower() == 'true'
logger.info(f"Initializing Redis connection to {redis_host}:{redis_port}")