mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Assume that the cable server is running in-process by default, offer option to change that in config/environments/production.rb
This commit is contained in:
parent
aae14ab3ac
commit
7eb12796ca
2 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,8 @@ require "active_support/core_ext/hash/indifferent_access"
|
||||||
module ActionCable
|
module ActionCable
|
||||||
class Railtie < Rails::Engine # :nodoc:
|
class Railtie < Rails::Engine # :nodoc:
|
||||||
config.action_cable = ActiveSupport::OrderedOptions.new
|
config.action_cable = ActiveSupport::OrderedOptions.new
|
||||||
|
config.action_cable.url = '/cable'
|
||||||
|
|
||||||
config.eager_load_namespaces << ActionCable
|
config.eager_load_namespaces << ActionCable
|
||||||
|
|
||||||
initializer "action_cable.helpers" do
|
initializer "action_cable.helpers" do
|
||||||
|
|
|
@ -40,6 +40,9 @@ Rails.application.configure do
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
||||||
|
|
||||||
|
# Action Cable should be mounted in a separate process for most production setups
|
||||||
|
# config.action_cable.url = 'wss://example.com/cable'
|
||||||
|
|
||||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||||
# config.force_ssl = true
|
# config.force_ssl = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue