ChinaBoy0618/dsh-web-auth0

dsh-web-auth

DSH Web 公网鉴权门:支持 token 登录与 cookie 会话,反向代理至本机 DSH Web

AI 分析

核心用途是为 DSH Web 提供公网访问的安全鉴权。适合需要将本地 DSH 暴露到公网并进行身份验证的用户,基于 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限速窗口(毫秒)