mirror of https://github.com/rq/rq.git
Extend ssl config options (#2066)
This commit is contained in:
parent
2fc5484852
commit
e21ce4e255
|
@ -80,6 +80,8 @@ def get_redis_from_config(settings, connection_class=Redis):
|
|||
'ssl_ca_certs': settings.get('REDIS_SSL_CA_CERTS', None),
|
||||
'ssl_cert_reqs': settings.get('REDIS_SSL_CERT_REQS', 'required'),
|
||||
'ssl_ca_data': settings.get('REDIS_SSL_CA_DATA', None),
|
||||
'ssl_keyfile': settings.get('REDIS_SSL_KEYFILE', None),
|
||||
'ssl_certfile': settings.get('REDIS_SSL_CERTFILE', None),
|
||||
}
|
||||
|
||||
return connection_class(**kwargs)
|
||||
|
|
Loading…
Reference in New Issue