Skip to content

Commit

Permalink
Disable SSL verification for Redis as per Heroku requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalw committed Oct 30, 2024
1 parent 04f2651 commit 735584b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/initializers/redis.rb

This file was deleted.

10 changes: 10 additions & 0 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Disable SSL verification as per Heroku requirements
# See https://devcenter.heroku.com/articles/connecting-heroku-redis#connecting-in-rails

Sidekiq.configure_server do |config|
config.redis = { ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
end

Sidekiq.configure_client do |config|
config.redis = { ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
end

0 comments on commit 735584b

Please sign in to comment.