From da8fec77bbb7ef844ed67a14d86c7fa10dae0d96 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 26 Nov 2018 10:38:56 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/conf.py | 2 +- apps/jumpserver/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index ec5111e1b..08716f93b 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -301,7 +301,7 @@ defaults = { 'REDIS_HOST': '127.0.0.1', 'REDIS_PORT': 6379, 'REDIS_PASSWORD': '', - 'REDIS_DB_CELERY_BROKER': 3, + 'REDIS_DB_CELERY': 3, 'REDIS_DB_CACHE': 4, 'CAPTCHA_TEST_MODE': None, 'TOKEN_EXPIRATION': 3600, diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 9ed022df9..963fd60a7 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -401,7 +401,7 @@ CELERY_BROKER_URL = 'redis://:%(password)s@%(host)s:%(port)s/%(db)s' % { 'password': CONFIG.REDIS_PASSWORD, 'host': CONFIG.REDIS_HOST, 'port': CONFIG.REDIS_PORT, - 'db': CONFIG.REDIS_DB_CELERY_BROKER, + 'db': CONFIG.REDIS_DB_CELERY, } CELERY_TASK_SERIALIZER = 'pickle' CELERY_RESULT_SERIALIZER = 'pickle'