Production cable config

This commit is contained in:
yafeilee 2016-04-28 11:30:50 +08:00
parent db6a585467
commit 61236c2d09
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ WBlog::Application.configure do
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# config.assets.precompile += %w( )
config.action_cable.url = 'wss://example.com/cable'
config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
#config.action_cable.url = 'wss://example.com/cable'
config.action_cable.allowed_request_origins = [ ENV['DOMAIN_NAME'] ]
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.