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

Commit 8baf234

Browse files
committed
Updated docs to contain env variables
1 parent d410c02 commit 8baf234

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

docs/basic-usage/pusher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ To do this, you should add the `host` and `port` configuration key to your `conf
4040
'options' => [
4141
'cluster' => env('PUSHER_APP_CLUSTER'),
4242
'encrypted' => true,
43-
'host' => '127.0.0.1',
44-
'port' => 6001,
45-
'scheme' => 'http',
43+
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
44+
'port' => env('PUSHER_APP_PORT', 6001),
45+
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
4646
],
4747
],
4848
```

docs/basic-usage/ssl.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ When broadcasting events from your Laravel application to the WebSocket server,
7575
'options' => [
7676
'cluster' => env('PUSHER_APP_CLUSTER'),
7777
'encrypted' => true,
78-
'host' => '127.0.0.1',
79-
'port' => 6001,
80-
'scheme' => 'https',
78+
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
79+
'port' => env('PUSHER_APP_PORT', 6001),
80+
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
8181
],
8282
],
8383
```
@@ -124,13 +124,13 @@ You also need to disable SSL verification.
124124
'options' => [
125125
'cluster' => env('PUSHER_APP_CLUSTER'),
126126
'encrypted' => true,
127-
'host' => '127.0.0.1',
128-
'port' => 6001,
129-
'scheme' => 'https',
127+
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
128+
'port' => env('PUSHER_APP_PORT', 6001),
129+
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
130130
'curl_options' => [
131131
CURLOPT_SSL_VERIFYHOST => 0,
132132
CURLOPT_SSL_VERIFYPEER => 0,
133-
]
133+
],
134134
],
135135
],
136136
```
@@ -199,7 +199,7 @@ server {
199199
location / {
200200
try_files /nonexistent @$type;
201201
}
202-
202+
203203
location @web {
204204
try_files $uri $uri/ /index.php?$query_string;
205205
}
@@ -283,7 +283,7 @@ socket.yourapp.tld {
283283
transparent
284284
websocket
285285
}
286-
286+
287287
tls youremail.com
288288
}
289289
```

docs/horizontal-scaling/getting-started.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ Laravel WebSockets comes with an additional `websockets` broadcaster driver that
4949
'options' => [
5050
'cluster' => env('PUSHER_APP_CLUSTER'),
5151
'encrypted' => true,
52-
'host' => '127.0.0.1',
53-
'port' => 6001,
52+
'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
53+
'port' => env('PUSHER_APP_PORT', 6001),
54+
'scheme' => env('PUSHER_APP_SCHEME', 'http'),
5455
'curl_options' => [
5556
CURLOPT_SSL_VERIFYHOST => 0,
5657
CURLOPT_SSL_VERIFYPEER => 0,

0 commit comments

Comments
 (0)