Skip to content
Plugin

dsh-login-gateway

runfali41Updated 1mo ago

Open on GitHub

dsh 登录门卫插件:让只监听本机的 dsh Web UI 安全地对外开放——登录墙 + 全量反代,零依赖、零侵入。

Practical score

81 / 100

Setup

Ready to use

License

MIT

Language

JavaScript

Install

Quick start

Copy the command, or hand the whole task to your harness agent.

git clone https://github.com/runfali/dsh-login-gateway.git
Install with your agent

Please install the DeepSeek Harness plugin "dsh-login-gateway" for me. - GitHub repository: runfali/dsh-login-gateway (https://github.com/runfali/dsh-login-gateway) - Type: a Cordis plugin (installed into a DSH profile) - It should work out of the box with no…

From the README

A cleaned excerpt from the project's own documentation.

dsh-login-gateway DeepSeek Harness(dsh)的 登录门卫插件 。dsh 的 Web UI 默认只监听 127.0.0.1:3080 ,禁止外部访问;本插件在外部再开一个入口(默认 0.0.0.0:3081 ),访问者先通过 用户名密码登录 ,登录成功后流量被 全量反向代理 到 dsh 的 Web UI(HTTP 与 WebSocket 都支持),功能零缺失。 零运行时依赖(只用 Node.js 内置模块),Node 22+ ESM。 --- 它解决什么问题 - 想从局域网/公网访问本机 dsh,但 dsh 只监听 loopback; - 直接改 dsh 让它监听 0.0.0.0 会裸奔在公网上,任何人可访问; - 本插件提供:外部入口 + 登录墙 + 全量反代,dsh 本身继续只听 127.0.0.1 。 效果预览 首次访问未初始化时,会进入 /setup 引导页,输入一次性令牌并创建管理员账号: 工作架构 关键点:反代时把请求头里的 Host / Origin / Sec-Fetch-Site 改写为 loopback 形态,让 dsh 把请求当作"本机请求"信任放行;WebSocket 升级请求同样先校验会话再转发。 dsh 0.1.2-alpha.1 起 dsh 在信任围栏之外又加了一层「浏览器鉴权」 :首页与全部 /api (含 WS 升级)必须携带宿主签发的 dsh-auth- 会话 Cookie,而该 Cookie 只能由启动令牌(打印在服务器终端的 dsh web: …/?token=… URL 里)换取。浏览器只见过门卫地址,永远拿不到这个令牌——所以由门卫在「已登录用户的首页导航」上代跑一次令牌交换: - 令牌只出现在 门卫 → dsh 这一跳的请求行上,不进入任何下发给浏览器的内容; - dsh 回 303 + Set-Cookie ,门卫原样透传,浏览器保存后 /api 与 WS 自然带上;…

Open on GitHub

Project details

by
runfali
License
MIT
stars
4
Forks
1
Updated
Sep 24, 2026
Created
Aug 17, 2026
Language
JavaScript
Indexed from
topic

Related entries

Similar tools from the same corner of the ecosystem.

View all
Plugin

dsh-proxy

smanx

HTTP + WebSocket 反向代理:把局域网端口转发到本地 DSH 服务

ai-agentai-agentsai-coding
32Ready to use
85/100
Plugin

dsh-project-mcp-manager

wldxiaobai

基于原版 DSH 扩展,提供项目层、用户层更完整 MCP 管理 || Extended from the original DSH code, providing more complete MCP management at both project and user levels

dshdsh-plugindsh-plugin-desktop
10Ready to use
83/100
Plugin

dsh-service-portal

dingminhua

Expose any local service on a random cloudflared domain with one password — QR code for LAN, QR + password for public, per-node routing managed in the DSH settings panel.

cloudflareddeepseek-harnessdeepseek-harness-plugin
3Ready to use
80/100