Skip to content

Unable to set REDIS_CLIENT_KWARGS when using URLΒ #690

Open
@jackmpcollins

Description

When "URL" is provided in the config, the "REDIS_CLIENT_KWARGS" parameter is not used when creating the Redis instance. This means that additional arguments such as ssl_ca_certs cannot be provided alongside the url.

if 'URL' in config:
if config.get('SSL') or config.get('URL').startswith('rediss://'):
return redis_cls.from_url(
config['URL'],
db=config.get('DB'),
ssl_cert_reqs=config.get('SSL_CERT_REQS', 'required'),
)
else:
return redis_cls.from_url(
config['URL'],
db=config.get('DB'),
)

A workaround for the moment is to pass the separate host, port, ssl, etc. arguments instead of the url.

Possibly related issue: #674

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions