diff options
author | David Gay <david@davidgay.org> | 2021-05-26 12:23:45 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 12:23:45 -0400 |
commit | c9ce866f6f77cad6335b87efd0f4886737628981 (patch) | |
tree | 99aabf1f5a7fb3066bf00cef4c140cad343d79af /config | |
parent | 703e896b81773e2319e06b27bc2ed591c17273bd (diff) |
Tweak prod config to get Action Cable working
Diffstat (limited to 'config')
-rw-r--r-- | config/environments/production.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index beef772..4333530 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -43,7 +43,7 @@ Rails.application.configure do # Mount Action Cable outside main process or domain. # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + config.action_cable.allowed_request_origins = [ "https://playesoterra.com" ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true @@ -119,4 +119,5 @@ Rails.application.configure do # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session config.hosts << "playesoterra.com" + config.hosts << "localhost" end |