This commit is contained in:
2026-07-27 14:29:46 +08:00
110 changed files with 13942 additions and 2044 deletions
+18
View File
@@ -44,6 +44,15 @@
"Dispatch": {
}
},
"_comment_Ota": "车辆 OTA:包与任务落盘 DataRootWatchDog:9776。拉包时车会 POST 到 WatchDog 配置的 serverIP:ReceivePort/upload-mdcs/*(默认 8000,与旧 Electron OTA 一致)。请把各车 watch_dog.json 的 serverIP 设为本机局域网 IP。",
"Ota": {
"DataRoot": "data/ota",
"WatchDogPort": 9776,
"ReceivePort": 8000,
"RequestTimeoutMs": 60000,
"UploadTimeoutMs": 600000,
"PublicBaseUrl": ""
},
"_comment_ReverseProxy": "sl-route 兜底 AnyAuthed(投影只读 + SSE)。管理面路径(map-edit / ai-config / reflection 写操作)单独拆路由挂 PlatformScope,防止运营账号经反代直达地图编辑与任意反射调用。",
"ReverseProxy": {
"Routes": {
@@ -65,6 +74,15 @@
{ "PathRemovePrefix": "/api/sl" }
]
},
"sl-assistant-route": {
"ClusterId": "sl-cluster",
"AuthorizationPolicy": "PlatformScope",
"Order": -2,
"Match": { "Path": "/api/sl/projection/assistant/{**catch-all}" },
"Transforms": [
{ "PathRemovePrefix": "/api/sl" }
]
},
"sl-reflection-selection-route": {
"ClusterId": "sl-cluster",
"AuthorizationPolicy": "AnyAuthed",