Update settings (#595)

修改redis有密码无法连接bug
pull/613/head
本杰明 2017-08-03 15:24:16 +08:00 committed by 老广
parent cd1d690fd3
commit 8537e3e135
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}