Jiachi5533/dsh-remote-gateway ↗★ 0

@jiachi/dsh-remote-gateway

带来源过滤的远程网关,需置于已认证反向代理之后。 适合需远程访问 DSH 的用户,必须配置反向代理与来源白名单。

包名
@jiachi/dsh-remote-gateway
兼容性
待验证
Harness 依赖范围
>=0.1.0-rc.2 <0.1.1 || >=0.1.1-rc.1 <0.2.0-0
版本
0.2.0
许可证
MIT
最近更新
2026年8月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jiachi5533/dsh-remote-gateway

Configuration

OptionDefaultDescription
host0.0.0.0Gateway listen address.
port3080Gateway listen port. Use 0 only in tests.
allowedSources['127.0.0.1']Exact IPv4 or IPv6 source addresses allowed to connect.

IPv4-mapped addresses are canonicalized, and IPv6 loopback ::1 is treated as 127.0.0.1. The upstream host and port are obtained from DSH itself and cannot be redirected through plugin configuration. Startup fails if the internal DSH web server is not bound to 127.0.0.1.

Allowlisted monitoring systems can check GET /_dsh-remote-gateway/health. It returns 200 ok without contacting the DSH upstream, so it verifies the gateway process and source policy rather than DSH readiness.