Bug: WebSocket-URL hat hardcoded Port 8000 #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Die WebSocket-URL im Frontend Dashboard ist auf Port 8000 hardcoded. Bei jedem Non-Standard-Deployment (anderer Port, Reverse Proxy) schlägt die WebSocket-Verbindung fehl.
Hintergrund
Dashboard.tsx:45konstruiert die WebSocket-URL alsws://${window.location.hostname}:8000/ws/updates. Das funktioniert nur wenn das Backend auf exakt Port 8000 läuft und kein Reverse Proxy davor steht.Akzeptanzkriterien
window.locationabgeleitet (Port + Protokoll)VITE_WS_URL)Technische Hinweise
frontend/src/pages/Dashboard.tsx:45const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; const wsUrl = \${wsProtocol}//${window.location.host}/ws/updates``frontend/src/api/client.tsals zentrale ConfigAufwand: S