Skip to content

Commit

Permalink
Change config.action_cable.url to be more sane
Browse files Browse the repository at this point in the history
  • Loading branch information
jahseng-lee committed Apr 28, 2024
1 parent f5bb406 commit a89863e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@

# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
config.action_cable.url = "wss://round-tomato-aaucx01kk0pnqsa92tssrxd7.herokudns.com/cable"
config.action_cable.url = ENV["HEROKU_ENV"] == "staging" ?
(
"wss://socket.staging.nomadstation.io/cable"
) : (
"wss://socket.nomadstation.io/cable"
)
# config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
Expand Down

0 comments on commit a89863e

Please sign in to comment.