Jiachi5533/dsh-remote-gateway ↗★ 0
@jiachi/dsh-remote-gateway
带来源过滤的远程网关,需置于已认证反向代理之后。 适合需远程访问 DSH 的用户,必须配置反向代理与来源白名单。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jiachi5533/dsh-remote-gateway说明文档
阅读完整 README ↗Configuration
| Option | Default | Description |
|---|---|---|
host | 0.0.0.0 | Gateway listen address. |
port | 3080 | Gateway 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.