DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

Z-6354 /

Z-6354/dsh-local-hanaccount

已验证

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@dab7e6b8

dsh-local-hanaccount — access lock for DSH Web

Single-operator access gate for exposing DSH on the public internet: password, Passkey, IP whitelist/blacklist, block statistics, and optional Nginx integration.

Features (v2.2)

  • Protect-all routes — wraps every plugin webServer prefix by default
  • Explicit expose — excludePrefixes skips login only (IP rules still apply)
  • Peer pairing — cross-device Token; outbound fetch auto-injects Bearer
  • API tokens — manual Bearer keys for scripts

Features (v2.1)

  • Password login — first visit sets password; scrypt hash + lockout after 5 failures
  • Passkey login — WebAuthn (HTTPS or localhost); fingerprint / Face ID in browser
  • IP whitelist — trusted IPs pass IP gate without logging
  • IP blacklist — permanent deny + block counter
  • Security visitors — suspicious IPs from blocks / failed logins (not whitelisted traffic)
  • SSH key login — authorized_keys + challenge/verify (ed25519)
  • Nginx snippet — copy-paste reverse proxy config with X-Real-IP
  • Nginx Basic passthrough — optional auto-login when Authorization: Basic is present
  • LAN mode — disable IP limits, password still required

Workspaces and sessions are native DSH — this plugin does not manage them.

Install

dsh plugin --profile web add dsh-local-hanaccount
# or from local checkout:
dsh plugin --profile web add /path/to/dsh-local-hanaccount

Restart DSH Web profile after install.

First run

  1. Open DSH in browser → set access password
  2. If your IP is not whitelisted, add it under Settings → 访问控制
  3. For public internet: put Nginx in front, bind DSH to 127.0.0.1, use the Nginx snippet from settings

Data directory

~/.dsh/storages/dsh-local-hanaccount/

File Purpose
config.json password hash, allow/deny lists, toggles
state.json sessions, lockouts
authorized_keys SSH public keys
passkeys.json Registered WebAuthn credentials
security-visitors.json block stats + suspicious IPs

Login methods

Method When
Password Always (first-time setup + fallback)
Passkey HTTPS or http://127.0.0.1 / localhost — register in Settings after first login
SSH key Settings → advanced; for CLI/scripts (manual sign flow)

Passkey availability is detected from the current URL (isSecureContext), not from whether you have a domain.

SSH key (CLI)

For headless/CLI use, add an ssh-ed25519 public key under Settings → SSH 密钥.

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit dab7e6b8724b

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于