aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 13:08:48 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 13:08:58 +0100
commitdee118ac0ddf4da77255e061fdb99068ee296f21 (patch)
tree3e6ce5c5e3bd65cb13b54e559091c1a13fdfa757 /railties
parentd3962cac2b0fe1a5dc08e3f777ec6743ecfd8acf (diff)
downloadrails-dee118ac0ddf4da77255e061fdb99068ee296f21.tar.gz
rails-dee118ac0ddf4da77255e061fdb99068ee296f21.tar.bz2
rails-dee118ac0ddf4da77255e061fdb99068ee296f21.zip
Include example of allowed_request_origins
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
index ab99030550..8d59a6fcf3 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
@@ -41,8 +41,9 @@ Rails.application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
<%- unless options[:skip_action_cable] -%>
- # Action Cable should be mounted in a separate process for most production setups
+ # Action Cable endpoint configuration
# config.action_cable.url = 'wss://example.com/cable'
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
<%- end -%>
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.