Skip to content

Commit b4df167

Browse files
authored
Merge pull request #107 from ropensci-org/redis-ssl-config
Configure Sidekiq->SSL->Redis
2 parents 6802751 + e26fb8d commit b4df167

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: app/lib/workers.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
require 'sidekiq'
22

3+
Sidekiq.configure_server do |config|
4+
config.redis = {
5+
url: ENV["REDIS_URL"],
6+
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
7+
}
8+
end
9+
Sidekiq.configure_client do |config|
10+
config.redis = {
11+
url: ENV["REDIS_URL"],
12+
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
13+
}
14+
end
15+
316
require "#{File.expand_path '../..', __FILE__}/workers/buffy_worker.rb"
417
Dir["#{File.expand_path '../..', __FILE__}/workers/**/*.rb"].sort.each { |f| require f }

0 commit comments

Comments
 (0)