feat: proxy loopback-only OpenClaw dashboard through web UI

- add dashboard proxy route for local OpenClaw endpoint
- return proxiedUrl from dashboard open API
- update sandbox button to open proxied route in new tab
This commit is contained in:
Mark McKeen
2026-03-29 09:59:15 -06:00
parent 0ac52ebaec
commit 4de15bc8ab
3 changed files with 41 additions and 3 deletions
+2 -1
View File
@@ -6,8 +6,9 @@ export async function GET() {
return NextResponse.json({
ok: true,
dashboardUrl,
proxiedUrl: '/api/openshell/dashboard/proxy',
openInNewTab: true,
loopbackOnly: true,
note: 'OpenClaw Dashboard is loopback-only on the host. For remote browser access, add a reverse proxy route or rebind the gateway.'
note: 'OpenClaw Dashboard is loopback-only on the host, so the web UI uses a local proxy route to expose it.'
})
}