dsh-public-proxy
开发工具 活跃维护

dsh-public-proxy

SpringNyan/dsh-public-proxy

该插件为轻量扩展组件,可自动将Web UI服务代理到局域网地址,无需复杂配置即可让本地设备通过内网访问对应管理界面,部署简单易用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
21 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:SpringNyan/dsh-public-proxy
git clone https://github.com/SpringNyan/dsh-public-proxy.git
git clone git@github.com:SpringNyan/dsh-public-proxy.git
README.md main

dsh-public-proxy

一个 DeepSeek Harness 插件,用于将 DSH Web UI 暴露给局域网访问。

安装

dsh plugin --profile web add dsh-public-proxy@latest

使用方法

插件运行后,默认会在 3081 端口监听。局域网内的其他设备可以通过以下地址访问 Web UI:

http://<本机局域网IP>:3081

例如 http://192.168.1.100:3081

配置

可以在 $DSH_HOME/profiles/web/cordis.patch.yml 中配置选项:

- id: public-proxy
  config:
    host: "0.0.0.0"
    port: 3081
    applyRandomUuidPatch: true
    applyLoopbackCheckPatch: true

安全警告

DSH 本身拒绝绑定 0.0.0.0,会返回以下官方错误:

error: --host 0.0.0.0 is intentionally not supported yet for safety: it would expose remote code execution to the network; use 127.0.0.1 instead

本插件有意绕过此限制以实现局域网访问。监听 0.0.0.0 会将 Web UI 暴露给整个网络 —— 网络中的任何人都可以访问该机器。请仅在可信任的局域网中启用此功能,切勿将代理直接暴露到公网。

许可证

MIT — 详见 LICENSE。