Updated readme configuration for default http scheme

This commit is contained in:
Alex Renoki 2020-09-02 14:00:22 +03:00
parent 3e239a0728
commit 1de554e3cf
2 changed files with 11 additions and 1 deletions

View File

@ -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,
],
],
],
```

View File

@ -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' => [