mirror of https://github.com/jumpserver/jumpserver
fix: 解决beat无法在redis-ssl下运行报错的问题 (#12893)
Co-authored-by: jiangweidong <weidong.jiang@fit2cloud.com>pull/12896/head
parent
bca0863952
commit
3336a4526b
|
@ -48,7 +48,7 @@ if REDIS_SENTINEL_SERVICE_NAME and REDIS_SENTINELS:
|
|||
)
|
||||
redis_client = sentinel_client.master_for(REDIS_SENTINEL_SERVICE_NAME)
|
||||
else:
|
||||
REDIS_PROTOCOL = 'rediss' if settings.REDIS_USE_SSL else 'redis'
|
||||
REDIS_PROTOCOL = 'rediss' if connection_params.pop('ssl', False) else 'redis'
|
||||
REDIS_LOCATION_NO_DB = '%(protocol)s://:%(password)s@%(host)s:%(port)s' % {
|
||||
'protocol': REDIS_PROTOCOL,
|
||||
'password': settings.REDIS_PASSWORD_QUOTE,
|
||||
|
|
Loading…
Reference in New Issue