We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adde342 commit ceab3edCopy full SHA for ceab3ed
config/initializers/redis.rb
@@ -0,0 +1,5 @@
1
+# frozen_string_literal: true
2
+
3
+# rubocop:disable Style/GlobalVars
4
+$redis = Redis.new(url: ENV.fetch("REDIS_URL", nil), ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }) if Rails.env.production?
5
+# rubocop:enable Style/GlobalVars
config/initializers/sidekiq.rb
@@ -0,0 +1,13 @@
+if Rails.env.production?
+ Sidekiq.configure_server do |config|
+ config.redis = { url: ENV.fetch("REDIS_URL", nil), ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
6
+ end
7
8
+ Sidekiq.configure_client do |config|
9
10
11
12
+ Sidekiq.strict_args!(false)
13
+end
0 commit comments