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 15, 2024
1 parent 3004f28 commit 4e5d077
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/lib/workers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
require 'sidekiq'

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

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

0 comments on commit 4e5d077

Please sign in to comment.