From e03f49e52b586e2f319c04f62d07450a48851993 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Fri, 11 Nov 2022 18:10:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0Redis=E5=93=A8?= =?UTF-8?q?=E5=85=B5=E9=85=8D=E7=BD=AE=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index 55303e2e1..2b44ecb2d 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -199,6 +199,10 @@ class Config(dict): 'REDIS_PORT': 6379, 'REDIS_PASSWORD': '', 'REDIS_USE_SSL': False, + # Redis Sentinel + 'REDIS_SENTINEL_HOSTS': '', + 'REDIS_SENTINEL_PASSWORD': '', + 'REDIS_SENTINEL_SOCKET_TIMEOUT': None, # Default value 'REDIS_DB_CELERY': 3, 'REDIS_DB_CACHE': 4,