Extend ssl config options (#2066)

This commit is contained in:
Stanislav Khlud 2024-04-13 06:43:55 +07:00 committed by GitHub
parent 2fc5484852
commit e21ce4e255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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)