Skip to content

Commit

Permalink
Configure Sidekiq->SSL->Redis
Browse files Browse the repository at this point in the history
xuanxu committed Jan 19, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5c10127 commit 95323cf
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
@@ -2,6 +2,7 @@
require 'erb'
require 'faraday'
require 'sidekiq'
require 'ostruct'

require_relative '../lib/defaults'
require_relative '../lib/github'

0 comments on commit 95323cf

Please sign in to comment.