From a7fb39ae90a8f6a8381fff16f2a5dbeecff0a03b Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Thu, 21 Nov 2024 12:47:00 +0100 Subject: [PATCH] fix Redis DSN scheme generation --- packages/settings-library/src/settings_library/redis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/settings-library/src/settings_library/redis.py b/packages/settings-library/src/settings_library/redis.py index 1fd7e4ac197..7e3b0e7b693 100644 --- a/packages/settings-library/src/settings_library/redis.py +++ b/packages/settings-library/src/settings_library/redis.py @@ -33,7 +33,7 @@ class RedisSettings(BaseCustomSettings): def build_redis_dsn(self, db_index: RedisDatabase) -> str: return str( RedisDsn.build( # pylint: disable=no-member - scheme="redis", + scheme="rediss" if self.REDIS_SECURE else "redis", username=self.REDIS_USER or None, password=( self.REDIS_PASSWORD.get_secret_value()