Updated docs to contain env variables
This commit is contained in:
parent
d410c0264f
commit
8baf2345bc
|
|
@ -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'),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue