Skip to content

Commit

Permalink
Configure Sidekiq->SSL->Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Oct 24, 2024
1 parent 6802751 commit e26fb8d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/lib/workers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
require 'sidekiq'

Sidekiq.configure_server do |config|
config.redis = {
url: ENV["REDIS_URL"],
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
}
end
Sidekiq.configure_client do |config|
config.redis = {
url: ENV["REDIS_URL"],
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
}
end

require "#{File.expand_path '../..', __FILE__}/workers/buffy_worker.rb"
Dir["#{File.expand_path '../..', __FILE__}/workers/**/*.rb"].sort.each { |f| require f }

0 comments on commit e26fb8d

Please sign in to comment.