ChinaBoy0618/dsh-web-auth ↗★ 0
dsh-web-auth
DSH Web 公网鉴权门:token 登录 + cookie 会话,反向代理到本机 DSH Web(含 WebSocket 透传)。零外部依赖,仅 node 内置模块。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ChinaBoy0618/dsh-web-auth说明文档
阅读完整 README ↗行配置(全部可选)
| key | 默认 | 说明 |
|---|---|---|
gateHost | 127.0.0.1 | gate 绑定地址 |
gatePort | 3081 | gate 监听端口(frpc 应指向这里) |
targetHost | 127.0.0.1 | DSH web 地址 |
targetPort | 3080 | DSH web 端口兜底值(运行时优先取 webServer.port) |
token | — | 直接内联 token |
tokenFile | web-auth-token | token 文件名(相对 $DSH_HOME)或绝对路径 |
sessionTtlMinutes | 720 | 会话 cookie 有效期(分钟,滑动续期) |
maxFails | 10 | 同 IP 连续失败多少次触发限速 |
failWindowMs | 600000 | 限速窗口(毫秒) |