Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set REDIS_CLIENT_KWARGS when using URL #690

Open
jackmpcollins opened this issue Dec 14, 2024 · 0 comments
Open

Unable to set REDIS_CLIENT_KWARGS when using URL #690

jackmpcollins opened this issue Dec 14, 2024 · 0 comments

Comments

@jackmpcollins
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant