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

feat: add multiple env variables for configuring Redis #202

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Jun 5, 2023

In #199 and #200 we discussed that there are instances of Redis where configuring it with a single REDIS_URL variable doesn't make sense. This PR keeps compatibility with previous REDIS_URL configuration, but allows you to use REDIS_HOST, REDIS_USER, REDIS_PASSWORD, REDIS_PORT, REDIS_SCHEME and REDIS_SECURE (overrides scheme and sets it to rediss) to configure Redis as well.

Combinations like REDIS_URL and REDIS_USER and REDIS_PASSWORD is supported. If connecting to REDIS v5 with password you must set the REDIS_USER variable to default

@chriswk chriswk requested a review from sighphyre June 5, 2023 12:24
@chriswk chriswk linked an issue Jun 5, 2023 that may be closed by this pull request
@chriswk chriswk self-assigned this Jun 5, 2023
server/src/cli.rs Outdated Show resolved Hide resolved
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chriswk chriswk force-pushed the 200-id-like-to-be-able-to-configure-redis-with-multiple-env-variables branch from a053a11 to 6392c92 Compare June 5, 2023 12:41
@chriswk chriswk merged commit 1074674 into main Jun 5, 2023
@chriswk chriswk deleted the 200-id-like-to-be-able-to-configure-redis-with-multiple-env-variables branch June 5, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

I'd like to be able to configure redis with multiple env variables
2 participants