xchannel1987/dsh-reverse-proxy-xc ↗★ 0
dsh-reverse-proxy-xc
DSH web plugin: LAN reverse proxy for the DSH web UI (default 0.0.0.0:3090 -> 127.0.0.1:3080, Host/Origin rewritten to loopback, crypto.randomUUID polyfill injected). Settings namespace dsh-reverse-proxy-xc: enabled, host, port, authEnabled, authUser, authPass. Ships a hand-written client half (lib/client.js): a settings.section config panel.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xchannel1987/dsh-reverse-proxy-xc说明文档
阅读完整 README ↗使用 DSH CLI
dsh plugin --profile web add dsh-reverse-proxy-xc
或使用 npm
npm install dsh-reverse-proxy-xc
安装后重启 DSH。
## ⚙️ 配置
1. 打开 DSH 设置
2. 找到「局域网反向代理」分区
3. 打开「启用代理」开关
4. 配置端口(默认 3090)
### 配置选项
| 选项 | 默认值 | 说明 |
|------|--------|------|
| enabled | false | 是否启用代理 |
| port | 3090 | 监听端口 |
| host | 0.0.0.0 | 监听地址 |
## 🎮 使用
1. 确保目标设备与主机在同一局域网或 VPN
2. 在目标设备浏览器访问:
http://:3090
例如:`http://10.100.50.125:3090`
3. 享受与本地 `http://127.0.0.1:3080` 完全一致的体验
## 🔧 工作原理
手机浏览器 ↓ HTTP/WS 反向代理 (0.0.0.0:3090) ↓ 改写 Header DSH 主服务 (127.0.0.1:3080) ↓ 视为回环访问 完整功能解锁
## ⚠️ 安全注意
- **不要暴露到公网**:此插件设计用于可信内网环境
- **VPN 推荐**:跨网访问建议使用 VPN
- **敏感操作**:涉及凭据和设置,请确保网络安全
## 📄 许可证
[MIT](https://github.com/xchannel1987/dsh-reverse-proxy-xc/blob/7bce42300e9ce5d7ebc554d11be4fa7afd4951bf/LICENSE)
## 🔗 链接
- [GitHub](https://github.com/xchannel1987/dsh-reverse-proxy-xc)
- [npm](https://www.npmjs.com/package/dsh-reverse-proxy-xc)
- [问题反馈](https://github.com/xchannel1987/dsh-reverse-proxy-xc/issues)
## ⚙️ 配置
1. 打开 DSH 设置
2. 找到「局域网反向代理」分区
3. 打开「启用代理」开关
4. 配置端口(默认 3090)
### 配置选项
| 选项 | 默认值 | 说明 |
|------|--------|------|
| enabled | false | 是否启用代理 |
| port | 3090 | 监听端口 |
| host | 0.0.0.0 | 监听地址 |
### 配置选项
| 选项 | 默认值 | 说明 |
|------|--------|------|
| enabled | false | 是否启用代理 |
| port | 3090 | 监听端口 |
| host | 0.0.0.0 | 监听地址 |
## 🎮 使用
1. 确保目标设备与主机在同一局域网或 VPN
2. 在目标设备浏览器访问:
http://:3090
例如:`http://10.100.50.125:3090`
3. 享受与本地 `http://127.0.0.1:3080` 完全一致的体验