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

Allow 'rediss' URL scheme to define whether SSL is enabled #58

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

Conversation

tomtaylor
Copy link

We use the REDIS_URL env var on Heroku to define our Redis URL. When SSL is enabled this is indicated by the rediss scheme in the URL.

As it stands, phoenix_pubsub_redis ignores this, and forces us to set ssl: true to use SSL for the connection.

This change allows the URL scheme to define whether SSL is enabled, removing the need to keep the :ssl setting inline with the URL scheme.

@tomtaylor tomtaylor changed the title Allow 'rediss' scheme to define whether SSL is enabled Allow 'rediss' URL scheme to define whether SSL is enabled May 25, 2021
If the URL uses the 'rediss' scheme, SSL should be enabled. This follows the
behaviour of Redix standalone and embedded in other libraries.
@tomtaylor
Copy link
Author

@chrismccord any thoughts on this?

@gorkunov
Copy link

we are also experiencing this issue.

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.

None yet

2 participants