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

Connect Jasmin to redis cluster #1243

Open
amenon-korewireless opened this issue Nov 27, 2024 · 0 comments
Open

Connect Jasmin to redis cluster #1243

amenon-korewireless opened this issue Nov 27, 2024 · 0 comments

Comments

@amenon-korewireless
Copy link

Hi,
Is there a possibility to connect Jasmin to a redis cluster which accepts username and password. The current jasmin does not seem to support username based redis. As shown in the below code it has only option to pass host, port and password. Please suggest

if REDIS_URL is not None: # Take redis config from REDIS_URL env variable (used by heroku) self.password, self.host, self.port = \ re.search(r"^redis\:\/\/\:([a-z0-9]+)@((?!-)[-a-zA-Z0-9.]{1,63}(?<!-))\:(\d+)$", REDIS_URL).groups() else: self.host = self._get('redis-client', 'host', '127.0.0.1') self.port = self._getint('redis-client', 'port', 6379) self.password = self._get('redis-client', 'password', None)

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