diff --git a/README.md b/README.md index 1fed2e2..bd894e5 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ pnpm frontend # Vite 前端,支持 HMR | 端 | 地址 | 说明 | | --- | --- | --- | -| 前端 | | `/api` 代理到本地 control-plane | +| 前端 | | `/api` 代理到本地 control-plane | | control-plane | | Go 热加载 | | native browser gateway | | 宿主机 Xvfb/浏览器生命周期 | | PostgreSQL | `127.0.0.1:15433`(可由 `CREATORHUB_POSTGRES_PORT` 覆盖) | 仅数据库依赖使用容器 | diff --git a/docs/deployment.md b/docs/deployment.md index 21822b5..0a008f9 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -114,7 +114,7 @@ pnpm frontend # Vite,HMR | 服务 | 地址 | | --- | --- | -| Vite | `http://127.0.0.1:5173` | +| Vite | `http://127.0.0.1:5100` | | control-plane | `http://0.0.0.0:8082` | | native gateway | `http://127.0.0.1:28187` | | PostgreSQL | `127.0.0.1:15433`(可由 `CREATORHUB_POSTGRES_PORT` 覆盖) | diff --git a/docs/e2e-test-plan.md b/docs/e2e-test-plan.md index 234c25f..c4e0eac 100644 --- a/docs/e2e-test-plan.md +++ b/docs/e2e-test-plan.md @@ -212,8 +212,8 @@ OP-08的UI注入在浏览器Console执行 `Object.defineProperty(crypto, 'random - 操作: 1. 正常停止 gateway,记录耗时/退出码/日志并检查无 SIGKILL,随后恢复 2. 核对只有 host-native gateway 管理 browser/Xvfb unit;runtime metadata、owner、node 和 generation 可追踪 - 3. 完整部署结束后按 compose.dev.yaml 单独启动依赖与开发进程;打开5173入口并观察 /api 到8082、网关8081映射 -- 预期:正常关停在45秒宽限内完成或明确失败;代理/事件订阅不悬挂。生产8080与开发5173/8082入口均可用,错误网关地址不能假成功;两种模式不共用活动测试实例。 + 3. 完整部署结束后按 compose.dev.yaml 单独启动依赖与开发进程;打开5100入口并观察 /api 到8082、网关28187映射 +- 预期:正常关停在45秒宽限内完成或明确失败;代理/事件订阅不悬挂。生产8080与开发5100/8082入口均可用,错误网关地址不能假成功;两种模式不共用活动测试实例。 ### 5.2 登录、导航与公共组件 diff --git a/docs/native-browser-verification.md b/docs/native-browser-verification.md index 49027f1..3e76b6b 100644 --- a/docs/native-browser-verification.md +++ b/docs/native-browser-verification.md @@ -87,7 +87,7 @@ docker compose config --quiet ### 已交付设置 - Go 使用 `LISTEN_ADDR`;联调须设置 `0.0.0.0:8082`。 -- Vite 当前 `/api` 代理到 `127.0.0.1:8082`,端口 5173。Vite 必须加 `--host 0.0.0.0`,不能只给 localhost 地址。 +- Vite 当前 `/api` 代理到 `127.0.0.1:8082`,端口 5100。Vite 必须加 `--host 0.0.0.0`,不能只给 localhost 地址。 - native Python gateway 使用 `LISTEN_ADDR=0.0.0.0:8081`,由非 root systemd user service 运行;稳定 `node_id` 从配置或主机身份加载。 - `scripts/dev-backend.mjs` 只启动 PostgreSQL 并检查 `NATIVE_GATEWAY_ENDPOINT`,不会启动浏览器容器。 @@ -105,7 +105,7 @@ LISTEN_ADDR=0.0.0.0:8082 go run ./cmd/control-plane npm --prefix web run dev -- --host 0.0.0.0 ``` -命令启动后,用 `ip -brief -4 addr` 记录当次实际局域网 IP。用户在另一台设备访问 `http://:5173`;开发者可查看 `http://:8082/healthz`。报告列出单节点 gateway 的实际 Endpoint。 +命令启动后,用 `ip -brief -4 addr` 记录当次实际局域网 IP。用户在另一台设备访问 `http://:5100`;开发者可查看 `http://:8082/healthz`。报告列出单节点 gateway 的实际 Endpoint。 历史观察到的地址不构成可用性证据;实施当天必须重新核实 IP、监听地址和防火墙。 diff --git a/web/vite.config.ts b/web/vite.config.ts index 0a78053..d019681 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -72,7 +72,7 @@ function creatorHubApiProxy(): Plugin { export default defineConfig({ server: { host: true, - port: 5173, + port: 5100, strictPort: true, proxy: { '/api': 'http://127.0.0.1:8082' } },