04c62417fa
* When the the .env file has line with REDIS_PASSWORD set as empty, the value for this in the initializers comes as an empty string "". * Fixed this in a way that, if it's empty string, then it's taken as `nil` value so that password is skipped
12 lines
330 B
Ruby
12 lines
330 B
Ruby
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
|