-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting Redis SSL verify_mode via env var
When using Redis 6 and above, Heroku Redis requires TLS [1] but uses self-signed certificates. As a result, Sidekiq cannot connect to Redis on Heroku. The official Heroku docs specify configuring `verify_mode` to `none` is the right move here. Heroku terminates SSL at the router and internal requests are all HTTP anyway. We obviously don't want this as the default setting, so we can turn off verification via an env var that we'll just set in Heroku environments. See also https://stackoverflow.com/q/65834575 [1] https://devcenter.heroku.com/articles/heroku-redis#security-and-compliance
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters