Skip to content

Add environment variable REDIS_PASSWORD#370

Open
mrolli wants to merge 1 commit intopinterest:masterfrom
id-unibe-ch:369-envvar-redis-password
Open

Add environment variable REDIS_PASSWORD#370
mrolli wants to merge 1 commit intopinterest:masterfrom
id-unibe-ch:369-envvar-redis-password

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

Successfully merging this pull request may close these issues.

Add support for env var REDIS_PASSWORD

1 participant