AcidGr/dsh-web-lan-access ↗★ 16
dsh-web-lan-access
DeepSeek Harness Web UI 的局域网/远程访问支持:独立绑定 0.0.0.0,并在普通 HTTP 源上提供 crypto.randomUUID 填充。
AI 分析
实现DSH Web UI的局域网及远程访问,自动绑定0.0.0.0并解决HTTP环境下的兼容性问题。适合需要跨设备远程访问Web界面的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AcidGr/dsh-web-lan-access說明文件
閱讀完整 README ↗Usage
The plugin is self-contained: its bundle patch sets the webserver bind host to 0.0.0.0 directly (the CLI flag --host 0.0.0.0 is hard-rejected for safety on newer harness versions, but the webserver config still accepts it — so no source changes and no --host flag are needed; the CLI --port flag still works).
-
Install the plugin, then start normally — without
--host:dsh --profile web --port 3080When bound to
0.0.0.0, the harness automatically adds every local non-internal IPv4 to the/apitrust fence (resolveLanTrust) — LAN IP access needs no extra config.If you prefer NOT to let the plugin take over the bind host (e.g. you want loopback + a port forward), keep the
webserverrow override out of your tree and instead forward a port (socat / rinetd / Tailscale serve) from127.0.0.1:3080, adding the forwarded address totrustedHostsmanually. -
Domains / remote (e.g. Tailscale) — add your own authorities to
trustedHosts:- id: web-runtime config: trustedHosts: - # e.g. myhost — MUST be listed separately! - .tailXXXX.ts.net # full domain - 100.x.x.x # tailnet IP⚠️ The fence compares the
Hostheader literally: a MagicDNS short name (http://myhost:3080) is not the full domain — list the short name on its own line, or every/apicall returns 403 (page shell loads, sessions/models absent).