Skip to content
New issue

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

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

Already on GitHub? # to your account

Add environment variable REDIS_PASSWORD #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrolli
Copy link

@mrolli mrolli commented Jun 12, 2024

This change allows to set a Redis password without the need to build up a whole REDIS_URL environment variable. The change is backward compatible as the default is set to "None", which is the default for redis.StrictRedis() according to the documentation.

With this change, deployment in a container app on Azure using a add-on Redis is then super simple as the env vars REDIS_HOST, REDIS_PORT and REDIS_PASSWORD are injected automatically by the platform.

Fixes #369

This change allows to set a password without the need to build up a
REDIS_URL environment variable.

Fixes pinterest#369
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for env var REDIS_PASSWORD
1 participant