docs(大屏): 部署文档指向 server-core(8090) 统一入口 /park — 移除旧 :10085 后端

config.json 的 api_base / VITE_API_BASE / health 检查全部改为 server-core(8090) /park;
生产为 https://opc.pinesound.cn/park。大屏 API/媒体/OTA 均走统一入口。
This commit is contained in:
Pine
2026-08-24 20:33:57 +08:00
parent 4257db2e26
commit 1e96e992bf
+6 -6
View File
@@ -7,7 +7,7 @@
```json
{
"api_base": "http://192.168.1.9:10085",
"api_base": "http://192.168.1.9:8090/park",
"mqtt_url": "ws://192.168.1.3:8083/mqtt",
"mqtt_username": "dpm",
"mqtt_password": "123456",
@@ -15,7 +15,7 @@
}
```
- `api_base`FastAPI 后端地址(API / 管理后台 / 媒体)
- `api_base`server-core 统一入口园区地址(`http://<IP>:8090/park`;生产 `https://opc.pinesound.cn/park`),大屏 API/媒体/OTA 都走它
- `mqtt_url`EMQX Broker 的 **WebSocket** 地址(端口 8083
- `mqtt_username/password`Broker 鉴权账号(默认 dpm / 123456,与后端 .env 一致)
@@ -43,7 +43,7 @@ MQTT_PASSWORD=你的密码
在项目根目录(**构建机器上**)配置 `.env.local`(已被 gitignore):
```
VITE_API_BASE=http://192.168.1.9:10085
VITE_API_BASE=http://192.168.1.9:8090/park
VITE_MQTT_URL=ws://192.168.1.3:8083/mqtt
VITE_MQTT_USERNAME=dpm
VITE_MQTT_PASSWORD=123456
@@ -56,15 +56,15 @@ VITE_MQTT_PASSWORD=123456
| 检查项 | 说明 |
|---|---|
| exe 未被运行 | `taskkill /f /im "昆明大学生创业园展播系统.exe"`,或直接用 `yarn build:win` |
| 后端已启动 | 浏览器打开 `http://<后端IP>:10085/api/health` 应返回 `{"ok":true,...}` |
| 后端已启动 | 浏览器打开 `http://<后端IP>:8090/park/api/health` 应返回 `{"ok":true,...}` |
| Broker WebSocket 已开 | EMQX 需开启 8083 端口 WS 监听,且账号密码与 config.json 一致 |
| Windows 防火墙 | 首次运行允许,或放行出站 10085/8083管理端上传用 10085 |
| Windows 防火墙 | 首次运行允许,或放行出站 8090/8083大屏经 8090 调 server-core |
## 五、常见排查
```
# 测试后端连通(展播机 PowerShell
Invoke-WebRequest http://192.168.1.9:10085/api/health
Invoke-WebRequest http://192.168.1.9:8090/park/api/health
# 测试 Broker WS 端口
Test-NetConnection 192.168.1.3 -Port 8083