dsh-lan-proxy
dsh LAN/public reverse proxy plugin: IP whitelist + Basic Auth + access log, runs inside the dsh process. Dual-stack (IPv4/IPv6).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mariGoIds/dsh-lan-proxy说明文档
阅读完整 README ↗配置
Schemastery schema;安全默认(白名单/认证/日志全空)。在 profile 的 cordis.patch.yml 覆盖:
- id: lan-proxy
config:
listenHost: '::'
listenPort: 3080
tlsPort: 3443
backendHost: 127.0.0.1
backendPort: 3081
allowedPrefixes: ['192.0.2.'] # 免密可信网段
allowedIps: [198.51.100.25]
authUsername: dsh # 用户名+密码都空 = 认证关
authPassword: ''
authSecret: '' # 可选,混入会话令牌
authRealm: dsh
authCookieName: dsh_auth
accessLog: true
accessLogFile: '' # '' = 仅进 dsh 日志器;非空则落盘
certDir: '' # '' = $DSH_HOME/certs 或 ~/.dsh/certs
| 字段 | 默认 | 说明 |
|---|---|---|
listenHost | :: | 绑定地址;:: 双栈 v4+v6 |
listenPort / tlsPort | 3080 / 3443 | HTTP / HTTPS 端口 |
backendHost / backendPort | 127.0.0.1 / 3081 | dsh 后端地址 |
allowedPrefixes | [] | 免密网段前缀(v4/v6 通用) |
allowedIps | [] | 免密精确 IP |
authUsername / authPassword | '' | Basic Auth 凭据;两者都非空才开认证 |
authRealm | dsh | 登录框文字 |
authCookieName | dsh_auth | 会话 cookie 名 |
authSecret | '' | 会话令牌私密盐;公网部署设随机长串,留空与 v0.2 兼容 |
accessLog | false | 每请求记日志 |
accessLogFile | '' | 非空则追加写文件 |
certDir | '' | TLS 证书目录;文件为 key.pem + cert.pem |