Skip to content

Commit

Permalink
Fix #58: Allow Pusher Host To Be Set In Env (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF authored Nov 28, 2019
1 parent e424efe commit d1acf51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ BROADCAST_DRIVER=pusher
PUSHER_APP_KEY=ukcpwebsocket
PUSHER_APP_SECRET=ukcpsecret
PUSHER_APP_ID=ukcpwebsocket
WEBSOCKET_BROADCAST_HOST=127.0.0.1
WEBSOCKET_CERT_PATH=
WEBSOCKET_PRIVATE_KEY_PATH=
WEBSOCKET_CERT_PASSPHRASE=
Expand Down
1 change: 1 addition & 0 deletions .env.travis
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ BROADCAST_DRIVER=pusher
PUSHER_APP_KEY=ukcpwebsocket
PUSHER_APP_SECRET=ukcpsecret
PUSHER_APP_ID=ukcpwebsocket
WEBSOCKET_BROADCAST_HOST=127.0.0.1
WEBSOCKET_CERT_PATH=
WEBSOCKET_PRIVATE_KEY_PATH=
WEBSOCKET_CERT_PASSPHRASE=
2 changes: 1 addition & 1 deletion config/broadcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true,
'host' => '127.0.0.1',
'host' => env('WEBSOCKET_BROADCAST_HOST') ?? '127.0.0.1',
'port' => 6001,
'scheme' => env('APP_ENV') !== 'local' ? 'https' : 'http'
],
Expand Down

0 comments on commit d1acf51

Please sign in to comment.