Chatwoot/config/initializers/sidekiq.rb

13 lines
330 B
Ruby
Raw Normal View History

sidekiq_redis_config = {
url: ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379'),
password: ENV.fetch('REDIS_PASSWORD', nil).presence
}
Sidekiq.configure_client do |config|
config.redis = sidekiq_redis_config.merge(size: 25)
end
Sidekiq.configure_server do |config|
config.redis = sidekiq_redis_config.merge(size: 25)
end