ChinaBoy0618/dsh-web-auth0

dsh-web-auth

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

AI 分析

核心用途是为 DSH Web 提供公网访问的安全鉴权。适合需要将本地 DSH 暴露到公网并进行身份验证的用户,基于 Node 内置模块实现,零外部依赖。

パッケージ
dsh-web-auth
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/10

インストール

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

ドキュメント

README 全文を読む ↗

行配置(全部可选)

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限速窗口(毫秒)