cirandas.net

ref: master

config/initializers/message_bus.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
MessageBus.user_id_lookup do |env|
  env['rack.session']['user']
end

# TODO: Should we rig this up with NOOSFERO_CONF?
MessageBus.configure(backend: :redis, url: ENV.fetch("REDIS_HOST",
                                                     "redis://localhost:6379/0"))

MessageBus.long_polling_interval = 30 * 1000
MessageBus.max_active_clients = 10_000