Skip to content

Commit

Permalink
Don't verify TLS
Browse files Browse the repository at this point in the history
This is needed when running a Heroku Redis instance other than mini
where you are only given a rediss:// URL and self signed certificate.

This turns off verification of the certificate.

Sidekiq fails to run without this [1].

This is a quick proof of concept so I can link to this branch for a
heroku example.

[1]: https://github.com/sidekiq/sidekiq/wiki/Heroku#redis
  • Loading branch information
kevindew committed Aug 19, 2024
1 parent 53c521a commit d78b319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govuk_sidekiq/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Railtie < Rails::Railtie
initializer "govuk_sidekiq.initialize_sidekiq" do |app|
SidekiqInitializer.setup_sidekiq(
ENV.fetch("GOVUK_APP_NAME", app.root.basename.to_s),
{ url: ENV.fetch("REDIS_URL", "redis://127.0.0.1:6379") },
{ url: ENV.fetch("REDIS_URL", "redis://127.0.0.1:6379"), ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } },
)
end
end
Expand Down

0 comments on commit d78b319

Please sign in to comment.