ChinaBoy0618/dsh-web-auth0

dsh-web-auth

DSH Web 公网鉴权门:token 登录 + cookie 会话,反向代理到本机 DSH Web(含 WebSocket 透传)。零外部依赖,仅 node 内置模块。

包名
dsh-web-auth
版本
0.1.0
许可证
MIT
最近更新
2026年9月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ChinaBoy0618/dsh-web-auth

行配置(全部可选)

key默认说明
gateHost127.0.0.1gate 绑定地址
gatePort3081gate 监听端口(frpc 应指向这里)
targetHost127.0.0.1DSH web 地址
targetPort3080DSH web 端口兜底值(运行时优先取 webServer.port)
token直接内联 token
tokenFileweb-auth-tokentoken 文件名(相对 $DSH_HOME)或绝对路径
sessionTtlMinutes720会话 cookie 有效期(分钟,滑动续期)
maxFails10同 IP 连续失败多少次触发限速
failWindowMs600000限速窗口(毫秒)