Skip to content

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 tomtaylor force-pushed the reddis-scheme-support branch from 504caa5 to f98b5f6 Compare July 14, 2021 08:29
@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.

2 participants