[10.x] Refines Reverb documentation (#9566)
* differentiate variables * typo
This commit is contained in:
parent
08354a737e
commit
72e03487cd
14
reverb.md
14
reverb.md
|
@ -82,11 +82,11 @@ For example, you may wish to maintain a single Laravel application which, via Re
|
|||
```php
|
||||
'apps' => [
|
||||
[
|
||||
'id' => 'my-app-one',
|
||||
'app_id' => 'my-app-one',
|
||||
// ...
|
||||
],
|
||||
[
|
||||
'id' => 'my-app-two',
|
||||
'app_id' => 'my-app-two',
|
||||
// ...
|
||||
],
|
||||
],
|
||||
|
@ -134,6 +134,16 @@ php artisan reverb:start --host=127.0.0.1 --port=9000
|
|||
|
||||
Alternatively, you may define `REVERB_SERVER_HOST` and `REVERB_SERVER_PORT` environment variables in your application's `.env` configuration file.
|
||||
|
||||
The `REVERB_SERVER_HOST` and `REVERB_SERVER_PORT` environment variables should not be confused with `REVERB_HOST` and `REVERB_PORT`. The former specify the host and port on which to run the Reverb server itself, while the latter pair instruct Laravel where to send broadcast messages. For example, in a production environment, you may route requests from your public Reverb hostname on port `443` to a Reverb server operating on `0.0.0.0:8080`. In this scenario, your environment variables would be defined as follows:
|
||||
|
||||
```ini
|
||||
REVERB_SERVER_HOST=0.0.0.0
|
||||
REVERB_SERVER_PORT=8080
|
||||
|
||||
REVERB_HOST=ws.laravel.com
|
||||
REVERB_PORT=443
|
||||
```
|
||||
|
||||
<a name="debugging"></a>
|
||||
### Debugging
|
||||
|
||||
|
|
Loading…
Reference in New Issue