diff --git a/docs/basic-usage/pusher.md b/docs/basic-usage/pusher.md index cc0589e..8a8dbd4 100644 --- a/docs/basic-usage/pusher.md +++ b/docs/basic-usage/pusher.md @@ -40,9 +40,9 @@ To do this, you should add the `host` and `port` configuration key to your `conf 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => true, - 'host' => '127.0.0.1', - 'port' => 6001, - 'scheme' => 'http', + 'host' => env('PUSHER_APP_HOST', '127.0.0.1'), + 'port' => env('PUSHER_APP_PORT', 6001), + 'scheme' => env('PUSHER_APP_SCHEME', 'http'), ], ], ``` diff --git a/docs/basic-usage/ssl.md b/docs/basic-usage/ssl.md index c51ba28..ad0b021 100644 --- a/docs/basic-usage/ssl.md +++ b/docs/basic-usage/ssl.md @@ -75,9 +75,9 @@ When broadcasting events from your Laravel application to the WebSocket server, 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => true, - 'host' => '127.0.0.1', - 'port' => 6001, - 'scheme' => 'https', + 'host' => env('PUSHER_APP_HOST', '127.0.0.1'), + 'port' => env('PUSHER_APP_PORT', 6001), + 'scheme' => env('PUSHER_APP_SCHEME', 'http'), ], ], ``` @@ -124,13 +124,13 @@ You also need to disable SSL verification. 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => true, - 'host' => '127.0.0.1', - 'port' => 6001, - 'scheme' => 'https', + 'host' => env('PUSHER_APP_HOST', '127.0.0.1'), + 'port' => env('PUSHER_APP_PORT', 6001), + 'scheme' => env('PUSHER_APP_SCHEME', 'http'), 'curl_options' => [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, - ] + ], ], ], ``` @@ -199,7 +199,7 @@ server { location / { try_files /nonexistent @$type; } - + location @web { try_files $uri $uri/ /index.php?$query_string; } @@ -283,7 +283,7 @@ socket.yourapp.tld { transparent websocket } - + tls youremail.com } ``` diff --git a/docs/horizontal-scaling/getting-started.md b/docs/horizontal-scaling/getting-started.md index 9033aff..e2cca5f 100644 --- a/docs/horizontal-scaling/getting-started.md +++ b/docs/horizontal-scaling/getting-started.md @@ -49,8 +49,9 @@ Laravel WebSockets comes with an additional `websockets` broadcaster driver that 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'encrypted' => true, - 'host' => '127.0.0.1', - 'port' => 6001, + 'host' => env('PUSHER_APP_HOST', '127.0.0.1'), + 'port' => env('PUSHER_APP_PORT', 6001), + 'scheme' => env('PUSHER_APP_SCHEME', 'http'), 'curl_options' => [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0,