fix: 修复部署问题
This commit is contained in:
44
video_worker/edge_node/README.md
Normal file
44
video_worker/edge_node/README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Edge Node Project
|
||||
|
||||
边缘设备独立项目目录(主动连接中心 WS,接收任务和运维指令)。
|
||||
|
||||
安全边界:
|
||||
|
||||
- 边缘仅主动连接中心(`DISPATCH_WS_URL`)
|
||||
- 边缘不提供外网入口,Worker 固定绑定 `127.0.0.1`
|
||||
|
||||
## Linux / WSL
|
||||
|
||||
```bash
|
||||
cd edge_node
|
||||
bash scripts/start.sh
|
||||
```
|
||||
|
||||
停止与重启:
|
||||
|
||||
```bash
|
||||
bash scripts/stop.sh
|
||||
bash scripts/restart.sh
|
||||
```
|
||||
|
||||
## Windows PowerShell (WSL)
|
||||
|
||||
```powershell
|
||||
cd edge_node
|
||||
.\scripts\wsl.ps1 -Action start
|
||||
```
|
||||
|
||||
常用:
|
||||
|
||||
```powershell
|
||||
.\scripts\wsl.ps1 -Action status
|
||||
.\scripts\wsl.ps1 -Action restart
|
||||
.\scripts\wsl.ps1 -Action stop
|
||||
```
|
||||
|
||||
## Config
|
||||
|
||||
首次启动会生成 `edge_node/.env`。请至少设置:
|
||||
|
||||
- `DISPATCH_WS_URL=ws://<center-host>:8060/ws/edge/<device-id>`
|
||||
- `WORKER_BASE_URL=http://127.0.0.1:8000`
|
||||
Reference in New Issue
Block a user