lt9/dsh-simple-auth0

dsh-simple-auth

超轻量 DSH 登录网关插件:支持共享密钥或主/客密钥、ACL 过滤会话列表及所有者分享控制,无生产依赖。

AI 分析

核心用途是为 DSH Web 服务添加轻量级的访问控制和登录页面。适合将 DSH 部署在公网或局域网服务器上、需要防止未授权访问的多用户共享场景。

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

安装

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

Configuration

All keys are optional. Defaults are applied in code (home-layer patch config replaces the whole object, it does not deep-merge).

KeyDefaultMeaning
keyEnvDSH_SIMPLE_AUTH_KEYEnvironment variable that holds the access key
keyFile""If set, read the key from this file (trimmed). Takes precedence over keyEnv
cookieNamedsh_simple_authSession cookie name
sessionTtl604800Cookie lifetime in seconds (7 days)
cookieSecureautoauto follows X-Forwarded-Proto; true / false force the Secure flag
rewriteLoopbacktruePresent authenticated traffic as `127.0.0.1:
` so dsh’s reverse-proxy Host fence does not 403 privileged APIs
titleDeepSeek HarnessLogin heading
hint(built-in zh/en copy)Login subtitle
remembertrueShow “remember key on this device” (localStorage only; the server still uses the cookie)
rpcMinTimeoutMs120000Floor for AbortSignal.timeout injected into the web index. dsh’s unary RPC default is 30s; large session.history pages over a tunnel abort with The user aborted a request. 0 disables the inject

Never put the key itself in YAML or git.