← 返回列表
D

dsh-gateway

v1.3.0 · 0 天前发布

Self-contained HTTPS remote-access gateway for the DeepSeek Harness web surface: cookie-session login, SNI multi-cert/self-signed TLS, and a WebSocket-capable reverse proxy — the Caddy layer as a dsh plugin.

deepseekharnessdshdsh-plugingatewayhttpstlsauthremotereverse-proxy

README

dsh-gateway

自包含的 DeepSeek Harness 远程访问网关插件:把「Caddy HTTPS + Cookie 登录」这一层直接做成 DSH 插件 —— 无需 caddy.exe,跨平台,装上即用。

Self-contained HTTPS remote-access gateway for the DeepSeek Harness web surface: the "Caddy HTTPS + cookie login" layer as a dsh plugin — no caddy binary, cross-platform.

  • TLS 终止:SNI 多站点多证书;未提供证书的站点自动生成自签证书(持久化,指纹稳定),并覆盖 SAN;无 SNI 的 IP 直连(https://192.168.x.x)正常工作

  • Cookie 会话登录:HMAC 签名、HttpOnly + Secure + SameSite=Lax、多用户、可配置会话时长;登录失败按 IP 限速锁定;登出清除浏览器 cookie

  • 反向代理:全量转发到 DSH web 服务(含 SSE 与 WebSocket upgrade),自动携带 X-Forwarded-For/Proto/Host

  • Host 白名单:只应答配置的主机名(防 DNS rebinding 类探测),其余 421

  • 热更新:通过 gateway: settings 命名空间配置(settings.yaml / Web 设置页),改用户/密码/限速即时生效;改端口/证书/站点自动重启监听
  • 安装

    sh
    dsh plugin --profile web add dsh-gateway

    重启 web 应用后,网关默认监听 `

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-gateway
    Repo
    git+https://github.com/clarknu/dsh-gateway.git
    Engines
    {"node":">=22.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":[],"platform":"web","immediately":true}}