Skip to content

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

Closed
tomtaylor wants to merge 1 commit intophoenixframework:masterfrom
tomtaylor:reddis-scheme-support
Closed

Allow 'rediss' URL scheme to define whether SSL is enabled#58
tomtaylor wants to merge 1 commit intophoenixframework:masterfrom
tomtaylor:reddis-scheme-support

Conversation

@tomtaylor
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@chrismccord any thoughts on this?

@gorkunov
Copy link
Copy Markdown

we are also experiencing this issue.

@mitchellhenke
Copy link
Copy Markdown
Collaborator

This should be addressed with #76

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.

3 participants