dsh-plugin-reverse-proxy 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,30 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## 0.4.4
8
+
9
+ 仅文档与截图,代码同 0.4.2。
10
+
11
+ **更新内容**
12
+ - README 新增「长什么样」:一张**设置 → 局域网访问**的真机截图(紫色开关 + 监听端口输入框 + 状态行),中英同步。
13
+ - README 首屏与文末加入**交流群**(QQ 群 1065464637),顶部多一枚群徽章。
14
+
15
+ **修复内容**
16
+ - 「长什么样」里命令行截图与后文重复引用,改为一处引用并加跳转。
17
+
18
+ ## 0.4.3
19
+
20
+ 仅文档与仓库配置,代码同 0.4.2。
21
+
22
+ **更新内容**
23
+ - README 首屏加**一行安装命令**与「装完点哪儿」,徽章全部换成可点的真实链接(license / npm 版本 / 下载量 / release / CI / stars)。
24
+ - About 描述补上「内网穿透替代」「免 Token 登录」等会被搜的词,homepage 指向 npm 包页。
25
+ - 新增 `.github/workflows/publish.yml`:推 `v*` 标签自动发 npm,并校验标签与 `package.json` 版本一致。
26
+ - 新增 Issue 模板(自动带 DSH 版本 / 插件版本 / 开关状态 / 系统浏览器)与讨论区入口。
27
+
28
+ **修复内容**
29
+ - README 里 tarball 示例仍写着 0.3.5 的文件名,改成 0.4.3。
30
+
7
31
  ## 0.4.2
8
32
 
9
33
  ### 文档 / 界面
package/README.en.md CHANGED
@@ -7,17 +7,40 @@
7
7
  <p align="center"><a href="README.md">简体中文</a> | English</p>
8
8
 
9
9
  <p align="center">
10
- <a href="#"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license"></a>
11
- <a href="#"><img src="https://img.shields.io/badge/dependencies-0-brightgreen.svg" alt="dependencies"></a>
12
- <a href="#"><img src="https://img.shields.io/badge/build-none-brightgreen.svg" alt="build"></a>
13
- <a href="#"><img src="https://img.shields.io/badge/dsh-0.2.2--rc.3-blueviolet.svg" alt="dsh"></a>
14
- <a href="#"><img src="https://img.shields.io/badge/status-beta-orange.svg" alt="status"></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license"></a>
11
+ <a href="https://www.npmjs.com/package/dsh-plugin-reverse-proxy"><img src="https://img.shields.io/npm/v/dsh-plugin-reverse-proxy?label=npm" alt="npm"></a>
12
+ <a href="https://www.npmjs.com/package/dsh-plugin-reverse-proxy"><img src="https://img.shields.io/npm/dm/dsh-plugin-reverse-proxy?label=downloads" alt="downloads"></a>
15
13
  <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/releases/latest"><img src="https://img.shields.io/github/v/release/llifco/dsh-plugin-reverse-proxy?label=release" alt="release"></a>
14
+ <img src="https://img.shields.io/badge/dependencies-0-brightgreen.svg" alt="dependencies">
15
+ <img src="https://img.shields.io/badge/build-none-brightgreen.svg" alt="build">
16
+ <a href="#scope"><img src="https://img.shields.io/badge/dsh-0.2.2--rc.1~rc.3-blueviolet.svg" alt="dsh"></a>
17
+ <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/actions"><img src="https://img.shields.io/github/actions/workflow/status/llifco/dsh-plugin-reverse-proxy/publish.yml?label=publish" alt="publish"></a>
16
18
  <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/stargazers"><img src="https://img.shields.io/github/stars/llifco/dsh-plugin-reverse-proxy" alt="stars"></a>
19
+ <a href="#community"><img src="https://img.shields.io/badge/QQ%20group-1065464637-12B7F5.svg" alt="QQ group"></a>
17
20
  </p>
18
21
 
19
22
  > One command and any device on your LAN — phone, tablet, another laptop — can open your DSH web UI,
20
23
  > **without copying the random token out of the startup log**.
24
+ ```bash
25
+ dsh plugin --profile web add dsh-plugin-reverse-proxy # recommended: npm package, no build
26
+ ```
27
+
28
+ Then open **Settings → LAN access**: it listens on loopback only by default, flip the switch,
29
+ confirm — your phone can connect.
30
+ (You can also install from source: `github:llifco/dsh-plugin-reverse-proxy`, see [Install](#install).)
31
+
32
+
33
+ ---
34
+
35
+ ## What it looks like
36
+
37
+ **Settings → LAN access** (off by default; flipping it asks for confirmation first):
38
+
39
+ <p align="center">
40
+ <img src="assets/settings-lan-access.jpg" width="620" alt="Settings · LAN access">
41
+ </p>
42
+
43
+ No GUI around? The same switch works from a terminal (`yes` is required) — see [Usage](#usage).
21
44
 
22
45
  ---
23
46
 
@@ -142,8 +165,8 @@ dsh plugin --profile web add .
142
165
  or use the tarball from the releases page / npm (filename carries the current version):
143
166
 
144
167
  ```bash
145
- dsh plugin --profile web add ./dsh-plugin-reverse-proxy-0.3.5.tgz
146
- # or: https://registry.npmjs.org/dsh-plugin-reverse-proxy/-/dsh-plugin-reverse-proxy-0.3.5.tgz
168
+ dsh plugin --profile web add ./dsh-plugin-reverse-proxy-0.4.3.tgz
169
+ # or: https://registry.npmjs.org/dsh-plugin-reverse-proxy/-/dsh-plugin-reverse-proxy-0.4.3.tgz
147
170
  ```
148
171
 
149
172
  Restart the host once:
@@ -263,3 +286,11 @@ routes events to the single live client rather than per tab. 0.4.x already gives
263
286
  identity (`x-dsh-tab` header plus `?tab=` on the mux — visible as `http tab ...` / `mux admit ...`
264
287
  in the log), but the gateway still accepts only one answering stream, so the plugin cannot work
265
288
  around it.
289
+
290
+ ---
291
+
292
+ ## Community
293
+
294
+ Questions, ideas and war stories: **QQ group 1065464637**.
295
+
296
+ For bugs, please open an [Issue](https://github.com/llifco/dsh-plugin-reverse-proxy/issues/new/choose) — the template asks for your DSH version, switch state and logs, which is far faster than guessing.
package/README.md CHANGED
@@ -7,18 +7,40 @@
7
7
  <p align="center">简体中文 | <a href="README.en.md">English</a></p>
8
8
 
9
9
  <p align="center">
10
- <a href="#"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license"></a>
11
- <a href="#"><img src="https://img.shields.io/badge/dependencies-0-brightgreen.svg" alt="dependencies"></a>
12
- <a href="#"><img src="https://img.shields.io/badge/build-none-brightgreen.svg" alt="build"></a>
13
- <a href="#"><img src="https://img.shields.io/badge/dsh-0.2.2--rc.3-blueviolet.svg" alt="dsh"></a>
14
- <a href="#"><img src="https://img.shields.io/badge/status-beta-orange.svg" alt="status"></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license"></a>
11
+ <a href="https://www.npmjs.com/package/dsh-plugin-reverse-proxy"><img src="https://img.shields.io/npm/v/dsh-plugin-reverse-proxy?label=npm" alt="npm"></a>
12
+ <a href="https://www.npmjs.com/package/dsh-plugin-reverse-proxy"><img src="https://img.shields.io/npm/dm/dsh-plugin-reverse-proxy?label=downloads" alt="downloads"></a>
15
13
  <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/releases/latest"><img src="https://img.shields.io/github/v/release/llifco/dsh-plugin-reverse-proxy?label=release" alt="release"></a>
14
+ <img src="https://img.shields.io/badge/dependencies-0-brightgreen.svg" alt="dependencies">
15
+ <img src="https://img.shields.io/badge/build-none-brightgreen.svg" alt="build">
16
+ <a href="#适用范围"><img src="https://img.shields.io/badge/dsh-0.2.2--rc.1~rc.3-blueviolet.svg" alt="dsh"></a>
17
+ <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/actions"><img src="https://img.shields.io/github/actions/workflow/status/llifco/dsh-plugin-reverse-proxy/publish.yml?label=publish" alt="publish"></a>
16
18
  <a href="https://github.com/llifco/dsh-plugin-reverse-proxy/stargazers"><img src="https://img.shields.io/github/stars/llifco/dsh-plugin-reverse-proxy" alt="stars"></a>
19
+ <a href="#%E4%BA%A4%E6%B5%81%E7%BE%A4"><img src="https://img.shields.io/badge/QQ%E7%BE%A4-1065464637-12B7F5.svg" alt="QQ 群"></a>
17
20
  </p>
18
21
 
19
22
  > 一条命令装上,局域网里的手机、平板、另一台电脑就能直接打开你的 DSH 网页界面,
20
23
  > **而且不用再从启动日志里抄那串随机 token**。
21
24
 
25
+ ```bash
26
+ dsh plugin --profile web add dsh-plugin-reverse-proxy # 推荐:npm 包,免构建
27
+ ```
28
+
29
+ 装完打开 **设置 → 局域网访问**:默认只监听本机,点开关 → 确认 → 手机就能进。
30
+ (也可以 `github:llifco/dsh-plugin-reverse-proxy` 从源码装,见 [安装](#安装)。)
31
+
32
+ ---
33
+
34
+ ## 长什么样
35
+
36
+ **设置 → 局域网访问**(默认关闭,点开关会先弹出一次安全确认):
37
+
38
+ <p align="center">
39
+ <img src="assets/settings-lan-access.jpg" width="620" alt="设置 · 局域网访问">
40
+ </p>
41
+
42
+ 没开图形界面时,终端里也能开关(`yes` 才真的开)——见下面 [怎么用](#怎么用)。
43
+
22
44
  ---
23
45
 
24
46
  ## 三个能力
@@ -164,8 +186,8 @@ dsh plugin --profile web add .
164
186
  或者用 Release / npm 上的 tarball(文件名带当前版本号):
165
187
 
166
188
  ```bash
167
- dsh plugin --profile web add ./dsh-plugin-reverse-proxy-0.3.5.tgz
168
- # 或 npm 包:https://registry.npmjs.org/dsh-plugin-reverse-proxy/-/dsh-plugin-reverse-proxy-0.3.5.tgz
189
+ dsh plugin --profile web add ./dsh-plugin-reverse-proxy-0.4.3.tgz
190
+ # 或 npm 包:https://registry.npmjs.org/dsh-plugin-reverse-proxy/-/dsh-plugin-reverse-proxy-0.4.3.tgz
169
191
  ```
170
192
 
171
193
  装完重启一次宿主:
@@ -296,3 +318,11 @@ nginx -t && systemctl reload nginx
296
318
  ## 许可
297
319
 
298
320
  MIT(`vendor/skip/` 内代码来自 @iasiv5/dsh-skip-browser-auth,同样 MIT)
321
+
322
+ ---
323
+
324
+ ## 交流群
325
+
326
+ 问题、想法、踩坑都欢迎来聊:**QQ 群 1065464637**。
327
+
328
+ 提 bug 的话,直接开 [Issue](https://github.com/llifco/dsh-plugin-reverse-proxy/issues/new/choose) 更好查——模板里会问 DSH 版本、开关状态和日志,比来回猜快得多。
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-reverse-proxy",
3
- "version": "0.4.2",
4
- "description": "DSH Web 反向代理 + 免 Token 登录(Web UI 专用):监听局域网端口,改写 Host/Origin/Sec-Fetch-Site 后转发到 127.0.0.1:3080,并替换官方 Connection 提供方跳过 BrowserAuth(版本门控,不匹配自动休眠)。仅适用于 Web UI 版,桌面版用不上。",
3
+ "version": "0.4.4",
4
+ "description": "DSH 网页界面局域网访问插件:内置反向代理 + 免 Token 登录,手机/平板同 Wi-Fi 直接打开后台。默认只监听本机,需显式开启,端口可自定义。",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {