packages/dsh-remote-web-ui
zhu1090093659/dsh-web手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
DSH 局域网反向代理插件 - 让手机/平板访问 DSH 获得完整功能,修复反代访问时设置面板无法打开的问题。
DSH LAN Reverse Proxy Plugin — Seamless access to DSH Web GUI from mobile/tablet devices on your local network with the full desktop experience.
DSH 0.1.7 compatible (
>=0.1.7-rc.1): adapted to the 0.1.7 breaking changes (ctx.settings.registerremoved, client servicesettingsScope→configForms). Settings stay under Settings → LAN Reverse Proxy; saving hot-restarts the proxy via the/api/dsh-reverse-proxy-xc/controlroute.
This plugin resolves critical issues when accessing via reverse proxy:
| Issue | Cause | Solution |
|---|---|---|
| Settings panel won't open | Frontend disables on non-loopback | Proxy injects isLoopback=true |
| randomUUID error | API unavailable under HTTP | Auto-inject polyfill |
| WebSocket disconnects | Proxy not forwarding correctly | Stream passthrough support |
| authentication required prompt | Mobile access lacks launch token | Auto-acquire and inject valid session cookie (bypassToken) |
0.0.0.0:3090 by default127.0.0.1:3080# Using DSH CLI
dsh plugin --profile web add dsh-reverse-proxy-xc
# Or using npm
npm install dsh-reverse-proxy-xc
Restart DSH after installation.
| Option | Default | Description |
|---|---|---|
| enabled | false | Whether to enable proxy |
| port | 3090 | Listen port |
| host | 0.0.0.0 | Listen address |
| bypassToken | true | Bypass Token Auth (auto-inject valid session cookie, no launch token required) |
| authEnabled | false | Whether to enable Basic access authentication |
| authUser | admin | Auth username |
| authPass | 123456 | Auth password |
http://<host-lan-ip>:3090
Example: http://10.100.50.125:3090
http://127.0.0.1:3080Mobile Browser
↓ HTTP/WS
Reverse Proxy (0.0.0.0:3090)
↓ Rewrite Headers
DSH Main Service (127.0.0.1:3080)
↓ Treats as loopback access
Full features unlocked