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 dda94bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/lib/workers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
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 }
1 change: 1 addition & 0 deletions app/workers/buffy_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'erb'
require 'faraday'
require 'sidekiq'
require 'ostruct'

require_relative '../lib/defaults'
require_relative '../lib/github'
Expand Down

0 comments on commit dda94bd

Please sign in to comment.