[Bug]: Reverb Dashboard fails on localhost when SSL is enabled due to hardcoded host
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- bun, typescript
- Ambito
- frontend
Direzione di ricerca
Inizia da websocket-status.tsx e ispeziona la configurazione di reverbApps, in particolare il modo in cui viene selezionato l’host WebSocket. Esegui bun run build dopo la modifica. Il lavoro è completato quando la dashboard usa VITE_REVERB_HOST invece di un indirizzo localhost hardcoded e la build termina correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Platform
macOS
Operating system version
MacOS 15.7.2
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.24.2
PHP Version
8.4
Bug description
I ran into an issue where the Reverb Dashboard would not connect on localhost when SSL was enabled.
This appears to be related to (or the same root cause as)
https://github.com/laravel/reverb/issues/350
Steps to reproduce
Environment
Initial environment configuration:
REVERB_APP_ID=1001
REVERB_APP_KEY=laravel-herd
REVERB_APP_SECRET=secret
REVERB_HOST="0.0.0.0"
REVERB_PORT=8080
REVERB_SCHEME=https
Later updated to:
REVERB_APP_ID=1001
REVERB_APP_KEY=laravel-herd
REVERB_APP_SECRET=secret
REVERB_HOST="reverb.herd.test"
REVERB_PORT=443
REVERB_SCHEME=https
What was happening
The Dashboard was failing to connect because the host inside websocket-status.tsx was hardcoded to 127.0.0.1. When SSL is enabled, this causes the Dashboard to ignore the configured REVERB_HOST, leading to connection failures on localhost and custom domains.
Fix
Updating the reverbApps configuration to use the environment variable instead of the hardcoded value resolved the issue.
const reverbApps = [
{
id: import.meta.env.VITE_REVERB_APP_ID,
name: "Main Application",
key: import.meta.env.VITE_REVERB_APP_KEY,
**host: import.meta.env.VITE_REVERB_HOST,**
port: import.meta.env.VITE_REVERB_PORT,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
},
]
After making this change and running:
bun run build
the Reverb Dashboard connected properly without any issues.
Expected behavior
The Dashboard should respect VITE_REVERB_HOST instead of relying on a hardcoded 127.0.0.1, especially when SSL is enabled.
Hope this helps
Relevant log output
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 124
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di beyondcode/herd-community
-
[Bug]: PHP 8.3 php.ini missing auto_prepend_file and herd-ext extension lines (dump() undefined)ApertamacOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
beyondcode/herd-community#1693 ·
-
[Bug]: 1.30.2 creates PHP 8.2 config and ~/.zshrc lines on every start, although 8.2 isn't installedApertafixed-in-next-release macOS
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
beyondcode/herd-community#1763 · 2 commenti ·
-
fixed-in-next-release macOS
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
beyondcode/herd-community#1760 ·
-
macOS
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
beyondcode/herd-community#1755 ·
-
macOS
Difficoltà 4/5 3-5 giorni Idoneità per principianti 63/100
beyondcode/herd-community#1752 ·
Tutte le issue di beyondcode/herd-community
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantumNous/new-api#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Automattic/blocks-engine#2866 ·
I maintainer di solito rispondono entro 1 giorno
-
B: visual
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
FreeTubeApp/FreeTube#9929 ·
I maintainer di solito rispondono entro 1 giorno
-
bug p2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getpaseo/paseo#7071 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Fixed-position outer <svg> lands outside a clip after scroll; fixed HTML boxes are re-anchoredAperta🔧 in development
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100