mariGoIds/dsh-lan-proxy0

dsh-lan-proxy

dsh LAN/public reverse proxy plugin: IP whitelist + Basic Auth + access log, runs inside the dsh process. Dual-stack (IPv4/IPv6).

包名
dsh-lan-proxy
版本
0.3.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mariGoIds/dsh-lan-proxy

配置

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 / tlsPort3080 / 3443HTTP / HTTPS 端口
backendHost / backendPort127.0.0.1 / 3081dsh 后端地址
allowedPrefixes[]免密网段前缀(v4/v6 通用)
allowedIps[]免密精确 IP
authUsername / authPassword''Basic Auth 凭据;两者都非空才开认证
authRealmdsh登录框文字
authCookieNamedsh_auth会话 cookie 名
authSecret''会话令牌私密盐;公网部署设随机长串,留空与 v0.2 兼容
accessLogfalse每请求记日志
accessLogFile''非空则追加写文件
certDir''TLS 证书目录;文件为 key.pem + cert.pem