@eduwork/dsh-remote-access 0.1.5 → 0.1.7
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 +16 -0
- package/README.md +2 -2
- package/README_EN.md +2 -2
- package/docs/DEPLOYMENT.md +8 -7
- package/docs/DEPLOYMENT_EN.md +8 -7
- package/docs/docker/Dockerfile +1 -1
- package/docs/docker/README.md +3 -3
- package/docs/docker/README_EN.md +3 -3
- package/docs/docker/compose.yaml +2 -2
- package/lib/THIRD_PARTY_LICENSES.txt +1 -1
- package/lib/client.js +47 -50
- package/lib/index.js +7353 -2120
- package/lib/web/loader.js +1 -1
- package/lib/web/preamble.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# 变更记录 / Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.7 — 2026-11-15
|
|
4
|
+
|
|
5
|
+
- 修复 iOS / iPadOS 16.4–17.3 上远程界面白屏:配对成功、电脑上也显示已连接,但设备上什么都不显示。远程网页现在会补上这些系统缺少的浏览器功能,DSH 界面也能正常加载。低于 16.4 的系统会提示版本过低,不再白屏。只需更新中继,电脑端不用更新。
|
|
6
|
+
|
|
7
|
+
- Fix a blank remote interface on iOS / iPadOS 16.4–17.3, where pairing succeeded and the computer showed the device as connected but nothing appeared on it. The remote web page now fills in the browser features these versions lack, so the DSH interface loads as well. Older versions are told the system is too old instead of showing a blank page. Only the relay needs updating; computers do not.
|
|
8
|
+
|
|
9
|
+
- 修复电脑启用“思考过程机器翻译”后远控页面无法启动的问题;远端翻译沿用电脑已配置的服务与限制,配置仍仅能在电脑上修改。
|
|
10
|
+
- Fix remote workbench startup with reasoning machine translation enabled. Remote translation uses the Host's configured service and limits; preferences remain editable only on the computer.
|
|
11
|
+
|
|
12
|
+
## 0.1.6 — 2026-11-12
|
|
13
|
+
|
|
14
|
+
- 兼容 DSH 0.2.2-rc.2;将已验证的 0.2.2 预发布 API 系列纳入有界兼容范围,保留原有受支持的宿主。 适配 Office Kit、搜索 provider、子代理停止及账号通知接口;继续拒绝本机终端和配置管理接口。
|
|
15
|
+
- Support DSH 0.2.2-rc.2 and the qualified 0.2.2 prerelease API family while retaining previously supported hosts. Adapt Office Kit, search providers, subagent interruption and account notification RPCs; retain terminal and configuration-management restrictions.
|
|
16
|
+
- 补齐新版会话状态与事件、工具结果订阅、文件搜索、会话团队开关、定时任务和 Markdown 导出接口,并以真实 rc.2 网页宿主的接口清单检查允许与拒绝边界。
|
|
17
|
+
- Cover new session state/events, tool-result subscriptions, file search, per-session team mode, scheduled tasks and Markdown export. Verify the allow/deny boundary against an actual rc.2 web-host inventory.
|
|
18
|
+
|
|
3
19
|
## 0.1.5 — 2026-11-07
|
|
4
20
|
|
|
5
21
|
- 连接在生成配对码时关闭后,及时清理待确认请求。
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
RELAY_URL=https://remote.example.edu/ RELAY_ACCESS_KEYS=替换成随机Key \
|
|
20
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
20
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
`RELAY_URL` 是用户访问中继的公开地址;`RELAY_ACCESS_KEYS` 是发给电脑主人的接入密钥,多个用逗号分隔。中继默认监听 `127.0.0.1:8787`,可用 `HOST`、`PORT` 修改;`<RELAY_URL>healthz` 返回 `ok`,可用于监控。
|
|
@@ -52,7 +52,7 @@ dsh plugin --profile web add @eduwork/dsh-remote-access
|
|
|
52
52
|
2. 在手机上扫码或打开链接,填写设备名称,点“开始配对”。
|
|
53
53
|
3. 确认手机和电脑上显示的 6 位配对码一致后,在电脑上点“允许”。
|
|
54
54
|
|
|
55
|
-
之后在这台设备上打开中继地址就会连接到电脑;断线后自动重连。iPhone 和 iPad
|
|
55
|
+
之后在这台设备上打开中继地址就会连接到电脑;断线后自动重连。iPhone 和 iPad 需要 iOS / iPadOS 16.4 或更高版本;请先把页面添加到主屏幕,从主屏幕打开后再粘贴配对链接:只在 Safari 里配对的设备,7 天不用会丢失配对。
|
|
56
56
|
|
|
57
57
|
在电脑的“已配对设备”里点“移除”,该设备立即断开,之后不能再连接。
|
|
58
58
|
|
package/README_EN.md
CHANGED
|
@@ -17,7 +17,7 @@ You need Node.js 24.22.1 or later and a reverse proxy that serves HTTPS for the
|
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
RELAY_URL=https://remote.example.edu/ RELAY_ACCESS_KEYS=replace-with-a-random-key \
|
|
20
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
20
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
`RELAY_URL` is the public address users reach the relay at; `RELAY_ACCESS_KEYS` are the comma-separated access keys you give to computer owners. The relay listens on `127.0.0.1:8787` by default; change it with `HOST` and `PORT`. `<RELAY_URL>healthz` answers `ok` for monitoring.
|
|
@@ -52,7 +52,7 @@ Organization sign-in also requires `@eduwork/dsh-oidc@0.3.1` or a later compatib
|
|
|
52
52
|
2. On the phone, scan the code or open the link, enter a device name and choose "Pair".
|
|
53
53
|
3. Check that the phone and the computer show the same 6-digit pairing code, then choose "Allow" on the computer.
|
|
54
54
|
|
|
55
|
-
From then on, opening the relay address on that device connects to the computer, and it reconnects by itself after a drop.
|
|
55
|
+
From then on, opening the relay address on that device connects to the computer, and it reconnects by itself after a drop. iPhone and iPad need iOS / iPadOS 16.4 or later; add the page to the Home Screen first, open it from there and paste the pairing link: a pairing made only in Safari is lost after 7 days without use.
|
|
56
56
|
|
|
57
57
|
Choose "Remove" under "Paired devices" on the computer to disconnect a device at once and keep it from connecting again.
|
|
58
58
|
|
package/docs/DEPLOYMENT.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
## Docker 快速部署
|
|
8
8
|
|
|
9
|
-
推荐服务器使用 [Docker 部署指南](docker/README.md):提供 Dockerfile、Compose 和脱敏的 `relay.env.example`,镜像从 npm 安装固定的 `0.1.
|
|
9
|
+
推荐服务器使用 [Docker 部署指南](docker/README.md):提供 Dockerfile、Compose 和脱敏的 `relay.env.example`,镜像从 npm 安装固定的 `0.1.7`,配置好访问地址和认证后用 `docker compose up -d --build` 启动。支持根路径、路径前缀、Key / OIDC 认证和 iframe 集成。HTTPS 由自己的反向代理提供,容器健康检查自动使用配置中的路径前缀。
|
|
10
10
|
|
|
11
11
|
下面保留直接使用 Node.js 和 systemd 的部署方式,两种方式使用相同的中继配置。
|
|
12
12
|
|
|
13
13
|
## 1. 启动服务
|
|
14
14
|
|
|
15
|
-
准备 Node.js **24.22.1 或更新的受支持版本**、npm,以及可以转发 WebSocket 的 HTTPS 反向代理。以下命令固定使用 `0.1.
|
|
15
|
+
准备 Node.js **24.22.1 或更新的受支持版本**、npm,以及可以转发 WebSocket 的 HTTPS 反向代理。以下命令固定使用 `0.1.7`,升级时明确修改版本号。
|
|
16
16
|
|
|
17
17
|
先生成接入 Key,保存好并交给需要注册电脑的用户:
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ Linux/macOS 前台试运行:
|
|
|
25
25
|
```sh
|
|
26
26
|
export RELAY_URL='https://remote.example.edu/'
|
|
27
27
|
export RELAY_ACCESS_KEYS='替换成刚才生成的Key'
|
|
28
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
28
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Windows PowerShell:
|
|
@@ -33,7 +33,7 @@ Windows PowerShell:
|
|
|
33
33
|
```powershell
|
|
34
34
|
$env:RELAY_URL = 'https://remote.example.edu/'
|
|
35
35
|
$env:RELAY_ACCESS_KEYS = '替换成刚才生成的Key'
|
|
36
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
36
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
默认监听 `127.0.0.1:8787`。`RELAY_URL` 是**用户访问的外部地址**,不是监听地址;TLS 在反向代理终止。前台命令退出就会停止服务,长期运行见第 3 节。只在本机调试时可使用 `http://localhost:8787/`;手机访问应使用具有有效证书的 HTTPS 地址,以便浏览器使用 Service Worker 和加密 API。
|
|
@@ -90,7 +90,7 @@ location /eduwork-remote/ {
|
|
|
90
90
|
```sh
|
|
91
91
|
sudo useradd --system --no-create-home --shell /usr/sbin/nologin eduwork-remote
|
|
92
92
|
sudo install -d /opt/eduwork-remote /etc/eduwork-remote
|
|
93
|
-
sudo npm install --prefix /opt/eduwork-remote --omit=dev --ignore-scripts --save-exact @eduwork/dsh-remote-access@0.1.
|
|
93
|
+
sudo npm install --prefix /opt/eduwork-remote --omit=dev --ignore-scripts --save-exact @eduwork/dsh-remote-access@0.1.7
|
|
94
94
|
sudo install -m 600 /dev/null /etc/eduwork-remote/relay.env
|
|
95
95
|
```
|
|
96
96
|
|
|
@@ -137,7 +137,7 @@ curl -fsS https://example.edu/eduwork-remote/healthz
|
|
|
137
137
|
curl -I https://example.edu/eduwork-remote/sw.js
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
前两项应返回 `ok`,第三项应返回 200 和 JavaScript 内容类型。健康检查只说明 HTTP 服务可达。使用插件 `0.1.
|
|
140
|
+
前两项应返回 `ok`,第三项应返回 200 和 JavaScript 内容类型。健康检查只说明 HTTP 服务可达。使用插件 `0.1.7` 时,在桌面“设置 → 远程访问”选择自己的中继,填写同一外部地址和 Key,点“测试连接”,分别核对服务可达性与身份验证结果;尚未开启远控也可以测试。随后开启“允许远程访问”,确认“已连接”;失败时可点“重试”。
|
|
141
141
|
|
|
142
142
|
点“添加设备”,按[配对步骤](../README.md#添加和移除设备)从另一终端接入,在本机核对配对码、确认授权。接入 Key 允许电脑使用中继,不能替代这次设备配对。
|
|
143
143
|
|
|
@@ -153,7 +153,7 @@ RELAY_FRAME_ANCESTORS=self https://portal.example.edu
|
|
|
153
153
|
|
|
154
154
|
单用机构登录时不设 `RELAY_ACCESS_KEYS`。`issuer` 必须与 Token 的 `iss` 完全一致,client ID 是桌面应用的 OIDC 客户端标识;多个 ID 用逗号分隔。中继从 discovery/JWKS 获取公钥,当前支持 **RS256 ID Token**,校验签名、issuer、audience/authorized party 和有效期;这里不是模型 API Key,也不是拿 access token 充当 ID Token。
|
|
155
155
|
|
|
156
|
-
电脑需安装 `@eduwork/dsh-oidc@0.3.1` 或后续兼容版本,并由发行版配置远控插件的 `organization: { relay, oidcProfileId }`。单纯设置服务端的 issuer 不会自动配置桌面登录。配置完成后,`0.1.
|
|
156
|
+
电脑需安装 `@eduwork/dsh-oidc@0.3.1` 或后续兼容版本,并由发行版配置远控插件的 `organization: { relay, oidcProfileId }`。单纯设置服务端的 issuer 不会自动配置桌面登录。配置完成后,`0.1.7` 的设置页支持使用机构账号、登录及测试连接,也允许用户切换到自己的中继;机构模式下的中继地址由发行版指定。中继验证已有身份,不保存 refresh token,也不替用户登录;续期由电脑的 OIDC 插件处理。
|
|
157
157
|
|
|
158
158
|
`RELAY_FRAME_ANCESTORS` 默认 `none`,禁止 iframe 嵌入。允许同源父页面时填 `self`,其他父页面填完整来源(协议、主机和可选端口,不含路径)。在 shell 中给多个来源加引号:`RELAY_FRAME_ANCESTORS="self https://portal.example.edu"`。父站自己的 CSP 也要允许加载中继,代理不能再给此路径附加冲突的 `X-Frame-Options: DENY` 或 `frame-ancestors 'none'`。
|
|
159
159
|
|
|
@@ -171,6 +171,7 @@ RELAY_FRAME_ANCESTORS=self https://portal.example.edu
|
|
|
171
171
|
| healthz 正常,电脑仍无法连接 | HTTPS 证书、WebSocket Upgrade、外部 URL/前缀一致性、接入 Key;OIDC 模式还要检查 issuer/JWKS 可达性和 ID Token。 |
|
|
172
172
|
| 子路径页面或 sw.js 返回 404 | `proxy_pass` 是否去掉了前缀,站点是否把此路径误转到另一个 SPA。 |
|
|
173
173
|
| 手机卡在加载页面 | 有效 HTTPS、Service Worker 未被父站拦截、电脑在线且未休眠、浏览器站点数据未被清理。 |
|
|
174
|
+
| iPhone 或 iPad 提示浏览器版本过低 | 远程访问需要 iOS / iPadOS 16.4 或更高版本,请升级系统。 |
|
|
174
175
|
| 顶层能打开,iframe 打不开 | 中继 `RELAY_FRAME_ANCESTORS`、父页面 CSP、代理额外响应头,以及 WebKit 跨站限制。 |
|
|
175
176
|
|
|
176
177
|
使用接入 Key 时不需要机构登录插件。API、帧格式和加密机制见[协议文档](PROTOCOL.md)。
|
package/docs/DEPLOYMENT_EN.md
CHANGED
|
@@ -6,13 +6,13 @@ The desktop plugin and relay ship in the same npm package, `@eduwork/dsh-remote-
|
|
|
6
6
|
|
|
7
7
|
## Quick deployment with Docker
|
|
8
8
|
|
|
9
|
-
For servers, use the [Docker deployment guide](docker/README_EN.md): a Dockerfile, Compose setup and sanitized `relay.env.example` install pinned version `0.1.
|
|
9
|
+
For servers, use the [Docker deployment guide](docker/README_EN.md): a Dockerfile, Compose setup and sanitized `relay.env.example` install pinned version `0.1.7` from npm. Configure the public URL and authentication, then run `docker compose up -d --build`. Root paths, path prefixes, key / OIDC authentication and iframe integration are supported. Your reverse proxy provides HTTPS; the container health check follows the configured prefix automatically.
|
|
10
10
|
|
|
11
11
|
The direct Node.js and systemd alternatives below use the same relay configuration.
|
|
12
12
|
|
|
13
13
|
## 1. Start the service
|
|
14
14
|
|
|
15
|
-
Use Node.js **24.22.1 or a later supported version**, npm, and an HTTPS reverse proxy supporting WebSockets. These examples pin `0.1.
|
|
15
|
+
Use Node.js **24.22.1 or a later supported version**, npm, and an HTTPS reverse proxy supporting WebSockets. These examples pin `0.1.7`; change the version explicitly when upgrading.
|
|
16
16
|
|
|
17
17
|
Generate an access key, retain it and give it to the users registering computers:
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ Linux/macOS foreground run:
|
|
|
25
25
|
```sh
|
|
26
26
|
export RELAY_URL='https://remote.example.edu/'
|
|
27
27
|
export RELAY_ACCESS_KEYS='replace-with-the-generated-key'
|
|
28
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
28
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Windows PowerShell:
|
|
@@ -33,7 +33,7 @@ Windows PowerShell:
|
|
|
33
33
|
```powershell
|
|
34
34
|
$env:RELAY_URL = 'https://remote.example.edu/'
|
|
35
35
|
$env:RELAY_ACCESS_KEYS = 'replace-with-the-generated-key'
|
|
36
|
-
npx --yes --package=@eduwork/dsh-remote-access@0.1.
|
|
36
|
+
npx --yes --package=@eduwork/dsh-remote-access@0.1.7 eduwork-remote-relay
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
The default listener is `127.0.0.1:8787`. `RELAY_URL` is the **external address users visit**, not the listening address. The proxy terminates TLS. Exiting the foreground command stops the service; see section 3 for persistent operation. Local-only debugging can use `http://localhost:8787/`; phones should use HTTPS with a valid certificate for Service Worker and cryptographic APIs.
|
|
@@ -90,7 +90,7 @@ Have a maintainer install the pinned package; run the service as an ordinary sys
|
|
|
90
90
|
```sh
|
|
91
91
|
sudo useradd --system --no-create-home --shell /usr/sbin/nologin eduwork-remote
|
|
92
92
|
sudo install -d /opt/eduwork-remote /etc/eduwork-remote
|
|
93
|
-
sudo npm install --prefix /opt/eduwork-remote --omit=dev --ignore-scripts --save-exact @eduwork/dsh-remote-access@0.1.
|
|
93
|
+
sudo npm install --prefix /opt/eduwork-remote --omit=dev --ignore-scripts --save-exact @eduwork/dsh-remote-access@0.1.7
|
|
94
94
|
sudo install -m 600 /dev/null /etc/eduwork-remote/relay.env
|
|
95
95
|
```
|
|
96
96
|
|
|
@@ -137,7 +137,7 @@ curl -fsS https://example.edu/eduwork-remote/healthz
|
|
|
137
137
|
curl -I https://example.edu/eduwork-remote/sw.js
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
The first two return `ok`; the last returns 200 with a JavaScript content type. Health checks establish HTTP reachability only. With plugin `0.1.
|
|
140
|
+
The first two return `ok`; the last returns 200 with a JavaScript content type. Health checks establish HTTP reachability only. With plugin `0.1.7`, choose your own relay under desktop Settings → Remote access, enter the same external URL and key, then use “Test connection” to check reachability and identity acceptance separately. Testing also works before remote access is enabled. Enable “Allow remote access” and check for “Connected”; use “Retry” after a connection failure.
|
|
141
141
|
|
|
142
142
|
Select “Add a device” and follow the [pairing steps](../README_EN.md#add-and-remove-devices) on another device, compare codes and approve on the computer. An access key admits a computer to the relay; it does not replace device pairing.
|
|
143
143
|
|
|
@@ -153,7 +153,7 @@ RELAY_FRAME_ANCESTORS=self https://portal.example.edu
|
|
|
153
153
|
|
|
154
154
|
Omit `RELAY_ACCESS_KEYS` when using organization sign-in alone. The issuer must exactly match the token's `iss`. Client IDs identify desktop applications registered with the issuer; separate multiple IDs with commas. Discovery/JWKS supplies public keys. The relay currently accepts **RS256 ID Tokens** and checks signatures, issuer, audience/authorized party and validity. This is neither a model API key nor an access token used as an ID Token.
|
|
155
155
|
|
|
156
|
-
The computer needs `@eduwork/dsh-oidc@0.3.1` or a later compatible version, and distribution configuration for `organization: { relay, oidcProfileId }`. Setting an issuer on the server does not configure desktop login. Once configured, the `0.1.
|
|
156
|
+
The computer needs `@eduwork/dsh-oidc@0.3.1` or a later compatible version, and distribution configuration for `organization: { relay, oidcProfileId }`. Setting an issuer on the server does not configure desktop login. Once configured, the `0.1.7` settings page supports organization sign-in and connection testing, and lets users switch to their own relay; the distribution selects the relay address for organization mode. The relay verifies existing identity, stores no refresh token and does not sign users in; the computer's OIDC plugin handles renewal.
|
|
157
157
|
|
|
158
158
|
`RELAY_FRAME_ANCESTORS` defaults to `none`, blocking iframe embedding. Use `self` for same-origin parents, or complete origins (scheme, host and optional port, without paths). Quote multiple sources in shell commands: `RELAY_FRAME_ANCESTORS="self https://portal.example.edu"`. The parent's CSP must also permit the relay, and the proxy must not add a conflicting `X-Frame-Options: DENY` or `frame-ancestors 'none'` to this path.
|
|
159
159
|
|
|
@@ -171,6 +171,7 @@ The current design needs scripts, Service Worker and same-origin identity; an op
|
|
|
171
171
|
| healthz works but the computer cannot connect | HTTPS certificate, WebSocket Upgrade, matching external URL/prefix and key; for OIDC, issuer/JWKS reachability and ID Token. |
|
|
172
172
|
| Path page or sw.js returns 404 | Check for prefix removal by `proxy_pass` or routing to another site's SPA. |
|
|
173
173
|
| Phone stays on the loading page | Valid HTTPS, no parent Service Worker interference, computer online and awake, browser site data retained. |
|
|
174
|
+
| iPhone or iPad says the browser is too old | Remote access needs iOS / iPadOS 16.4 or later; update the system. |
|
|
174
175
|
| Top-level page works but iframe does not | Relay frame ancestors, parent CSP, proxy response headers and WebKit cross-site restrictions. |
|
|
175
176
|
|
|
176
177
|
Access-key deployments do not need an organization login plugin. See the [protocol](PROTOCOL.md) for APIs, frames and encryption.
|
package/docs/docker/Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1
|
|
2
2
|
FROM node:24.22.1-alpine@sha256:6a1c190e17215d844926b0677f4bf87273ff7d5e54db06d3b5b5863ab0b09a3d
|
|
3
3
|
|
|
4
|
-
ARG REMOTE_ACCESS_VERSION=0.1.
|
|
4
|
+
ARG REMOTE_ACCESS_VERSION=0.1.7
|
|
5
5
|
WORKDIR /opt/eduwork-remote
|
|
6
6
|
# Install the published relay at build time; startup never downloads packages.
|
|
7
7
|
RUN npm install --omit=dev --omit=optional --ignore-scripts --no-audit --no-fund \
|
package/docs/docker/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README_EN.md) · [完整部署指南](../DEPLOYMENT.md)
|
|
4
4
|
|
|
5
|
-
使用 Docker Engine 和 Compose v2,从 npm 安装固定的 `@eduwork/dsh-remote-access@0.1.
|
|
5
|
+
使用 Docker Engine 和 Compose v2,从 npm 安装固定的 `@eduwork/dsh-remote-access@0.1.7` 并构建本地镜像。服务器不需要安装 Node.js,也不需要复制桌面端文件或插件源码。准备好域名和支持 WebSocket 的 HTTPS 反向代理,按下面步骤即可启动。
|
|
6
6
|
|
|
7
7
|
## 1. 准备文件和配置
|
|
8
8
|
|
|
@@ -58,7 +58,7 @@ curl -fsS https://example.edu/eduwork-remote/healthz
|
|
|
58
58
|
|
|
59
59
|
健康检查应成功,两个 HTTP 请求应返回 `ok`;根路径部署时去掉命令中的 `/eduwork-remote`。容器健康状态只检查内部 HTTP 服务,外部 HTTPS、WebSocket 和身份认证还需从客户端验证。
|
|
60
60
|
|
|
61
|
-
电脑安装远控插件 `0.1.
|
|
61
|
+
电脑安装远控插件 `0.1.7` 后,在“设置 → 远程访问”选择自己的中继,填写同一外部 URL 和 Key,点“测试连接”。它分别检查服务可达性和身份是否通过,未开启远控时也能测试。通过后开启“允许远程访问”,点“添加设备”,扫码或打开链接,在电脑上核对配对码并允许。详见[设备配对](../../README.md#添加和移除设备)。
|
|
62
62
|
|
|
63
63
|
## 4. 机构登录和网页嵌入
|
|
64
64
|
|
|
@@ -86,7 +86,7 @@ docker compose up -d --force-recreate
|
|
|
86
86
|
升级时把 `REMOTE_ACCESS_VERSION` 设为已经发布、准备采用的确切版本;下面以本版为例。后续在同一 shell 中运行 Compose 命令,或把该变量保存在本机 `.env`,使镜像标签和构建参数保持一致。
|
|
87
87
|
|
|
88
88
|
```sh
|
|
89
|
-
export REMOTE_ACCESS_VERSION=0.1.
|
|
89
|
+
export REMOTE_ACCESS_VERSION=0.1.7
|
|
90
90
|
docker compose up -d --build
|
|
91
91
|
docker compose exec -T relay node -p "require('@eduwork/dsh-remote-access/package.json').version"
|
|
92
92
|
```
|
package/docs/docker/README_EN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[简体中文](README.md) · [Full deployment guide](../DEPLOYMENT_EN.md)
|
|
4
4
|
|
|
5
|
-
Use Docker Engine and Compose v2 to build a local image from the published `@eduwork/dsh-remote-access@0.1.
|
|
5
|
+
Use Docker Engine and Compose v2 to build a local image from the published `@eduwork/dsh-remote-access@0.1.7` npm package. The server needs neither a Node.js installation nor desktop files or plugin source. Prepare a domain and an HTTPS reverse proxy supporting WebSockets, then follow these steps.
|
|
6
6
|
|
|
7
7
|
## 1. Prepare files and configuration
|
|
8
8
|
|
|
@@ -58,7 +58,7 @@ curl -fsS https://example.edu/eduwork-remote/healthz
|
|
|
58
58
|
|
|
59
59
|
The health check should succeed and both HTTP requests should return `ok`; omit `/eduwork-remote` for root deployments. Container health checks only the internal HTTP service. Verify external HTTPS, WebSockets and authentication from the desktop client as well.
|
|
60
60
|
|
|
61
|
-
With remote access plugin `0.1.
|
|
61
|
+
With remote access plugin `0.1.7` installed, open Settings → Remote access, select your own relay, enter the same external URL and key, and choose "Test connection". It checks reachability and identity acceptance separately, even before remote access is enabled. Enable "Allow remote access", select "Add a device", scan or open the link, then compare codes and approve on the computer. See [pairing](../../README_EN.md#add-and-remove-devices).
|
|
62
62
|
|
|
63
63
|
## 4. Organization sign-in and embedding
|
|
64
64
|
|
|
@@ -86,7 +86,7 @@ docker compose up -d --force-recreate
|
|
|
86
86
|
For upgrades, set `REMOTE_ACCESS_VERSION` to the exact published version you intend to deploy; this example uses the current version. Run subsequent Compose commands in the same shell, or save the variable in a local `.env`, keeping the image tag and build argument consistent.
|
|
87
87
|
|
|
88
88
|
```sh
|
|
89
|
-
export REMOTE_ACCESS_VERSION=0.1.
|
|
89
|
+
export REMOTE_ACCESS_VERSION=0.1.7
|
|
90
90
|
docker compose up -d --build
|
|
91
91
|
docker compose exec -T relay node -p "require('@eduwork/dsh-remote-access/package.json').version"
|
|
92
92
|
```
|
package/docs/docker/compose.yaml
CHANGED
|
@@ -2,11 +2,11 @@ name: eduwork-remote
|
|
|
2
2
|
services:
|
|
3
3
|
relay:
|
|
4
4
|
# This image is built locally from the published npm package.
|
|
5
|
-
image: eduwork-remote-relay:${REMOTE_ACCESS_VERSION:-0.1.
|
|
5
|
+
image: eduwork-remote-relay:${REMOTE_ACCESS_VERSION:-0.1.7}
|
|
6
6
|
build:
|
|
7
7
|
context: .
|
|
8
8
|
args:
|
|
9
|
-
REMOTE_ACCESS_VERSION: ${REMOTE_ACCESS_VERSION:-0.1.
|
|
9
|
+
REMOTE_ACCESS_VERSION: ${REMOTE_ACCESS_VERSION:-0.1.7}
|
|
10
10
|
restart: unless-stopped
|
|
11
11
|
init: true
|
|
12
12
|
env_file: relay.env
|