mirror of https://github.com/kortix-ai/suna.git
Merge pull request #143 from korjavin/redis_env_fix
fix: update Redis SSL environment variable handling
This commit is contained in:
commit
b784007ab7
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue