-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Doesn't work with Heroku Redis (TLS required, Redis 6+) #224
Comments
Thank you for your question. We advise you to use our community driven resources: If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now. This is an automated comment, triggered by adding the label |
Configure your PHP properly:
|
Thanks @samdark, I'll give it a try! FWIW, it looks like Heroku just made this change recently, so it will likely become relevant to anyone running Yii/Craft on Heroku Redis. |
Hi @timkelty. Did you manage to find a solution to that problem in Heroku? |
@SerotoninaAbad Ended up going with the dumb/easy solution: ditch Heroku Redis and use their "Redis To Go" add-on, which doesn't require tls. |
@dzuelke is this something that needs to be done in the buildpack? |
Can this be worked around now that #227 is released? |
Got bitten by this one today too, and can't use @timkelty's solution.. has anyone else managed to get a connection working to Heroku Redis? |
Got it working by using this in the config: 'useSSL' => true,
'contextOptions' => [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
], |
As I previously said, #224 (comment) should be done instead of turning off peer verification. |
@samdark that is only if you have control over the php installation |
Guys, it's 2021... Change your provider. Anyway, this should be continued at forum if at all. |
Production plans of Heroku Redis now require a TLS connection: https://devcenter.heroku.com/articles/heroku-redis#create-a-new-instance
However, enabling via
useSSL => true
does not work with these Redis instances.What steps will reproduce the problem?
useSSL => true
What's expected?
Connection should work.
What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: