Update broadcasting configuration in .env.example and broadcasting.php: replace REVERB_* variables with REVERB_BROADCAST_* for clarity, ensuring proper local and production settings for websocket connections.

This commit is contained in:
Mekan1206
2026-08-16 17:38:29 +05:00
parent 87bc7d9591
commit 5a9ba0cc23
2 changed files with 12 additions and 9 deletions

View File

@@ -51,7 +51,8 @@ AWS_USE_PATH_STYLE_ENDPOINT=false
CHAT_SUPPORT_USER_ID=
# Laravel Reverb (`php artisan reverb:start` / supervisor).
# PHP broadcasts to this host. Browsers use nginx at wss://mm.com.tm/app.
# PHP publishes events to 127.0.0.1:8080 (REVERB_BROADCAST_* / SERVER_PORT).
# Browsers use nginx at wss://mm.com.tm/app (VITE_REVERB_*).
# Local:
REVERB_APP_ID=
REVERB_APP_KEY=
@@ -61,10 +62,12 @@ REVERB_PORT=8080
REVERB_SCHEME=http
REVERB_SERVER_HOST=0.0.0.0
REVERB_SERVER_PORT=8080
# Production (keep SERVER_* on 8080; PHP can still use 127.0.0.1:8080):
# REVERB_HOST=127.0.0.1
# REVERB_PORT=8080
# REVERB_SCHEME=http
REVERB_BROADCAST_HOST=127.0.0.1
REVERB_BROADCAST_PORT=8080
REVERB_BROADCAST_SCHEME=http
# Production: keep BROADCAST_* and SERVER_* on 127.0.0.1:8080.
# Set VITE_REVERB_HOST=mm.com.tm VITE_REVERB_PORT=443 VITE_REVERB_SCHEME=https
# on the frontend build. Do not point PHP at mm.com.tm:443.
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"