Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 1de554e

Browse files
committed
Updated readme configuration for default http scheme
1 parent 3e239a0 commit 1de554e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/basic-usage/pusher.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ To do this, you should add the `host` and `port` configuration key to your `conf
4343
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
4444
'port' => env('PUSHER_APP_PORT', 6001),
4545
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
46+
'curl_options' => [
47+
CURLOPT_SSL_VERIFYHOST => 0,
48+
CURLOPT_SSL_VERIFYPEER => 0,
49+
],
4650
],
4751
],
4852
```

docs/basic-usage/ssl.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ window.Echo = new Echo({
6464

6565
## Server configuration
6666

67-
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`:
67+
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`
68+
69+
```env
70+
PUSHER_APP_SCHEME=https
71+
```
72+
73+
Your connection from `config/broadcasting.php` would look like this:
6874

6975
```php
7076
'pusher' => [

0 commit comments

Comments
 (0)