Skip to content

Commit a7fb39a

Browse files
fix Redis DSN scheme generation
1 parent 5732a12 commit a7fb39a

File tree

1 file changed

+1
-1
lines changed
  • packages/settings-library/src/settings_library

1 file changed

+1
-1
lines changed

packages/settings-library/src/settings_library/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RedisSettings(BaseCustomSettings):
3333
def build_redis_dsn(self, db_index: RedisDatabase) -> str:
3434
return str(
3535
RedisDsn.build( # pylint: disable=no-member
36-
scheme="redis",
36+
scheme="rediss" if self.REDIS_SECURE else "redis",
3737
username=self.REDIS_USER or None,
3838
password=(
3939
self.REDIS_PASSWORD.get_secret_value()

0 commit comments

Comments
 (0)