From 70ba24bd9b78e21904323a5dc2dcac3549f67a86 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Mon, 8 Apr 2024 14:45:31 +0100 Subject: [PATCH 1/2] differentiate variables --- reverb.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reverb.md b/reverb.md index 2300d9abbf1..1e50779fdc6 100644 --- a/reverb.md +++ b/reverb.md @@ -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 +``` + ### Debugging From 2d69f817b785379db779783d2fd6296e4cc62cf9 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Mon, 8 Apr 2024 14:45:45 +0100 Subject: [PATCH 2/2] typo --- reverb.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reverb.md b/reverb.md index 1e50779fdc6..9142b46701a 100644 --- a/reverb.md +++ b/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', // ... ], ],