Updated readme configuration for default http scheme
This commit is contained in:
parent
3e239a0728
commit
1de554e3cf
|
|
@ -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'),
|
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
|
||||||
'port' => env('PUSHER_APP_PORT', 6001),
|
'port' => env('PUSHER_APP_PORT', 6001),
|
||||||
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
|
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
|
||||||
|
'curl_options' => [
|
||||||
|
CURLOPT_SSL_VERIFYHOST => 0,
|
||||||
|
CURLOPT_SSL_VERIFYPEER => 0,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,13 @@ window.Echo = new Echo({
|
||||||
|
|
||||||
## Server configuration
|
## 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
|
```php
|
||||||
'pusher' => [
|
'pusher' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue