Ich sende dir meine Anfrage in mehreren Teilen. Bitte bearbeite sie, wenn alle Teile empfangen sind und ich "DONE" schreibe!
OpenClaw Web Control UI - WebSocket Connection Failed (1006)
ZIEL
OpenClaw Web Control UI soll ĂĽber Reverse Proxy (Apache) mit Authentik OIDC-Auth funktionieren.
Architektur:
User → Apache (TLS + Authentik OIDC) → OpenClaw Gateway (loopback:60200)
Auth-Mode: token (nicht trusted-proxy)
- Gateway-Token in openclaw.json konfiguriert
- CLI TUI funktioniert âś…
- Web Control UI schlägt fehl ❌
PROBLEM
Symptom
- Authentik-Login erfolgreich
- Redirect zu
/chat?session=main - Control UI lädt kurz
- Dann: "disconnected (1006): no reason"
Chrome DevTools
WebSocket connection to 'wss://<domain>/' failed:
connect @ gateway.ts:154
Gateway Log
[ws] closed before connect conn=... remote=127.0.0.1 ... code=1006 reason=connect failed
Keine "unauthorized" oder "pairing required" Fehler!
KONFIGURATION
openclaw.json (Gateway)
{
"gateway": {
"port": 60200,
"bind": "loopback",
"auth": {
"mode": "token",
"token": "<gateway-token>"
},
"controlUi": {
"enabled": true,
"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true
}
}
}