mirror of https://github.com/jumpserver/jumpserver
Merge pull request #9223 from jumpserver/pr@v3@perf_sentinel_ssl_conf
perf: 优化Sentinels配置参数pull/9228/head
commit
bc45a8d207
|
@ -343,9 +343,9 @@ if REDIS_SENTINEL_SERVICE_NAME and REDIS_SENTINELS:
|
|||
}
|
||||
})
|
||||
if REDIS_USE_SSL:
|
||||
REDIS_OPTIONS['CONNECTION_POOL_KWARGS'].update({
|
||||
'connection_class': SentinelManagedSSLConnection
|
||||
})
|
||||
CONNECTION_POOL_KWARGS = REDIS_OPTIONS['CONNECTION_POOL_KWARGS']
|
||||
CONNECTION_POOL_KWARGS['connection_class'] = SentinelManagedSSLConnection
|
||||
REDIS_OPTIONS['CONNECTION_POOL_KWARGS'] = CONNECTION_POOL_KWARGS
|
||||
DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory'
|
||||
else:
|
||||
REDIS_LOCATION_NO_DB = '%(protocol)s://:%(password)s@%(host)s:%(port)s/{}' % {
|
||||
|
|
Loading…
Reference in New Issue