From 8537e3e13584c55131473150ee66e36f180b5068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AC=E6=9D=B0=E6=98=8E?= Date: Thu, 3 Aug 2017 15:24:16 +0800 Subject: [PATCH] Update settings (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改redis有密码无法连接bug --- apps/jumpserver/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 2869bf7ed..ca8b63881 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -316,7 +316,7 @@ AUTH_LDAP_USER_ATTR_MAP = CONFIG.AUTH_LDAP_USER_ATTR_MAP # Celery using redis as broker BROKER_URL = 'redis://:%(password)s@%(host)s:%(port)s/3' % { - 'password': CONFIG.REDIS_PASSWORD + ':' if CONFIG.REDIS_PASSWORD else '', + 'password': CONFIG.REDIS_PASSWORD if CONFIG.REDIS_PASSWORD else '', 'host': CONFIG.REDIS_HOST or '127.0.0.1', 'port': CONFIG.REDIS_PORT or 6379, }