Updated docs to contain env variables

This commit is contained in:
Alex Renoki 2020-08-27 11:26:07 +03:00
parent d410c0264f
commit 8baf2345bc
3 changed files with 15 additions and 14 deletions

View File

@ -40,9 +40,9 @@ To do this, you should add the `host` and `port` configuration key to your `conf
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true, 'encrypted' => true,
'host' => '127.0.0.1', 'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
'port' => 6001, 'port' => env('PUSHER_APP_PORT', 6001),
'scheme' => 'http', 'scheme' => env('PUSHER_APP_SCHEME', 'http'),
], ],
], ],
``` ```

View File

@ -75,9 +75,9 @@ When broadcasting events from your Laravel application to the WebSocket server,
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true, 'encrypted' => true,
'host' => '127.0.0.1', 'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
'port' => 6001, 'port' => env('PUSHER_APP_PORT', 6001),
'scheme' => 'https', 'scheme' => env('PUSHER_APP_SCHEME', 'http'),
], ],
], ],
``` ```
@ -124,13 +124,13 @@ You also need to disable SSL verification.
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true, 'encrypted' => true,
'host' => '127.0.0.1', 'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
'port' => 6001, 'port' => env('PUSHER_APP_PORT', 6001),
'scheme' => 'https', 'scheme' => env('PUSHER_APP_SCHEME', 'http'),
'curl_options' => [ 'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYPEER => 0,
] ],
], ],
], ],
``` ```
@ -199,7 +199,7 @@ server {
location / { location / {
try_files /nonexistent @$type; try_files /nonexistent @$type;
} }
location @web { location @web {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
} }
@ -283,7 +283,7 @@ socket.yourapp.tld {
transparent transparent
websocket websocket
} }
tls youremail.com tls youremail.com
} }
``` ```

View File

@ -49,8 +49,9 @@ Laravel WebSockets comes with an additional `websockets` broadcaster driver that
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true, 'encrypted' => true,
'host' => '127.0.0.1', 'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
'port' => 6001, 'port' => env('PUSHER_APP_PORT', 6001),
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
'curl_options' => [ 'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYPEER => 0,