Added support for Redis sentinel

This commit is contained in:
Antoine Nguyen
2025-03-26 13:22:39 +01:00
parent 6cef7553c8
commit 1ce66dc407
7 changed files with 119 additions and 21 deletions
+2
View File
@@ -0,0 +1,2 @@
WEBMAIL_DEV_USERNAME=tonio@ngyn.org
WEBMAIL_DEV_PASSWORD=Aka/12ctogael
+9
View File
@@ -256,6 +256,15 @@ PID_FILE_STORAGE_PATH = "/tmp"
# REDIS
REDIS_SENTINEL = bool(os.environ.get("REDIS_SENTINEL", False))
REDIS_SENTINELS = [
(
os.environ.get("REDIS_SENTINEL_HOST", "127.0.0.1"),
os.environ.get("REDIS_SENTINEL_PORT", 26379),
)
]
REDIS_MASTER = os.environ.get("REDIS_MASTER", "mymaster")
REDIS_HOST = os.environ.get("REDIS_HOST", "127.0.0.1")
REDIS_PORT = os.environ.get("REDIS_PORT", 6379)
REDIS_QUOTA_DB = 0