liyang52520/dsh-web-login ↗★ 0

dsh-web-login

Web界面密码登录门禁与安全管理插件 适合多用户或公网部署环境,提供密码保护、防暴力破解及审计日志。

套件
dsh-web-login
相容性
待驗證
版本
1.3.0
授權
MIT
最近更新
2026年9月30日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:liyang52520/dsh-web-login

Usage

First-run setup

dsh prints a one-time setup token at startup:

dsh web-login: setup-token: 7rJfiimRBtBZbZZqbEY3_O6VBO3Te-bA

Where to find it depends on the deployment: journalctl -u dsh under systemd, the terminal for a foreground run, docker logs in a container.

Visit the site, enter the token and set a password.

Management UI

Once signed in, the gate is managed from Settings → 登录门禁 (Login Gate) inside Harness. A Chinese label is expected at present; see Interface language.

Settings page

ActionEffect
Change passwordVerifies the current password, then sets a new one; rotates the signing key, invalidating sessions on other devices
Reset passwordDeletes the stored password; every device must run first-run setup again
Sign outClears this device's session only

The panel follows Harness's theme setting.

Dark theme

Configuration

Configuration is written to the profile's cordis.patch.yml:

- id: web-login
  config:
    title: My Harness
    rememberDays: 7

config is replaced as a whole; unlisted keys keep their defaults.

KeyDefaultDescription
enabledtrueSet to false to take over no routes at all
title"DeepSeek Harness"Page title and login page heading
passwordMinLength8Minimum password length
rememberDays30Session lifetime when "Remember me" is checked
sessionHours12Session lifetime otherwise
maxFailures5Consecutive failures before a lockout
lockoutSeconds300Lockout duration in seconds
clientIpHeader"x-real-ip"Header used to obtain the real client IP; determines what the rate limit counts
allowLoopbackSetupfalseAllow loopback addresses to set a password without the setup token
indexHtml""Explicit path to the frontend index.html
unlockRemoteSettingstrueAllow remote browsers to change settings; see "Settings are read-only"
pageTheme"auto"Login page colour scheme: auto / light / dark