2020-03-17 17:09:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
Rails.application.configure do
|
2020-05-06 11:09:42 -04:00
|
|
|
# We only mount the ActionCable engine in tests where we run it in-app
|
|
|
|
# For other environments, we run it on a standalone Puma server
|
|
|
|
config.action_cable.mount_path = Rails.env.test? ? '/-/cable' : nil
|
2020-03-17 17:09:16 -04:00
|
|
|
config.action_cable.url = Gitlab::Utils.append_path(Gitlab.config.gitlab.relative_url_root, '/-/cable')
|
2020-05-03 17:09:39 -04:00
|
|
|
config.action_cable.worker_pool_size = Gitlab.config.action_cable.worker_pool_size
|
2020-03-17 17:09:16 -04:00
|
|
|
end
|