1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-19 00:58:21 +09:00
mastodon/config/initializers/sidekiq.rb

11 lines
245 B
Ruby
Raw Normal View History

host = ENV['REDIS_HOST'] || 'localhost'
port = ENV['REDIS_PORT'] || 6379
Sidekiq.configure_server do |config|
config.redis = { host: host, port: port }
end
Sidekiq.configure_client do |config|
config.redis = { host: host, port: port }
end