From 1de554e3cf42d93c608949f8e503fe3a83fc1382 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Wed, 2 Sep 2020 14:00:22 +0300 Subject: [PATCH] Updated readme configuration for default http scheme --- docs/basic-usage/pusher.md | 4 ++++ docs/basic-usage/ssl.md | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/basic-usage/pusher.md b/docs/basic-usage/pusher.md index 8a8dbd4..219e2c1 100644 --- a/docs/basic-usage/pusher.md +++ b/docs/basic-usage/pusher.md @@ -43,6 +43,10 @@ To do this, you should add the `host` and `port` configuration key to your `conf '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, + ], ], ], ``` diff --git a/docs/basic-usage/ssl.md b/docs/basic-usage/ssl.md index ad0b021..b538290 100644 --- a/docs/basic-usage/ssl.md +++ b/docs/basic-usage/ssl.md @@ -64,7 +64,13 @@ window.Echo = new Echo({ ## Server configuration -When broadcasting events from your Laravel application to the WebSocket server, you also need to tell Laravel to make use of HTTPS instead of HTTP. You can do this by setting the `scheme` option in your `config/broadcasting.php` file to `https`: +When broadcasting events from your Laravel application to the WebSocket server, you also need to tell Laravel to make use of HTTPS instead of HTTP. You can do this by setting the `PUSHER_APP_SCHEME` variable to `https` + +```env +PUSHER_APP_SCHEME=https +``` + +Your connection from `config/broadcasting.php` would look like this: ```php 'pusher' => [