feat: 迁入 MiGu.Server、平台前端与车辆列表 reflection 回退
从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Yarp": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Cors": {
|
||||
"Origins": [
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173"
|
||||
]
|
||||
},
|
||||
"Jwt": {
|
||||
"Secret": "REPLACE_ME",
|
||||
"Issuer": "migu.server",
|
||||
"Audience": "migu.client",
|
||||
"LifetimeMinutes": 1440
|
||||
},
|
||||
"Internal": {
|
||||
"Token": "REPLACE_ME"
|
||||
},
|
||||
"_comment_SimpleLite": "登录后拉起 SimpleLite;改路径请编辑下方 SimpleLite 节点。诊断: http://localhost:8080/api/health/simplelite",
|
||||
"SimpleLite": {
|
||||
"Enabled": true,
|
||||
"ExecutablePath": "..\\..\\Simple\\SimpleLite\\bin\\Debug\\SimpleLite.exe",
|
||||
"WorkingDirectory": "..\\..\\Simple\\SimpleLite\\bin\\Debug",
|
||||
"Arguments": "",
|
||||
"ReadinessTimeoutMs": 15000,
|
||||
"ReadinessPollIntervalMs": 250,
|
||||
"ProjectionPort": 8222,
|
||||
"FollowParent": false
|
||||
},
|
||||
"Auth": {
|
||||
"Users": {
|
||||
"admin": { "Password": "admin" },
|
||||
"ops": { "Password": "ops" }
|
||||
}
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": {
|
||||
"sl-route": {
|
||||
"ClusterId": "sl-cluster",
|
||||
"Match": { "Path": "/api/sl/{**catch-all}" },
|
||||
"Transforms": [
|
||||
{ "PathRemovePrefix": "/api/sl" }
|
||||
]
|
||||
},
|
||||
"vrender-route": {
|
||||
"ClusterId": "vrender-cluster",
|
||||
"Match": { "Path": "/vr/{**catch-all}" },
|
||||
"Transforms": [
|
||||
{ "PathRemovePrefix": "/vr" }
|
||||
]
|
||||
}
|
||||
},
|
||||
"Clusters": {
|
||||
"sl-cluster": {
|
||||
"Destinations": {
|
||||
"sl1": { "Address": "http://127.0.0.1:8222/" }
|
||||
}
|
||||
},
|
||||
"vrender-cluster": {
|
||||
"Destinations": {
|
||||
"vr1": { "Address": "http://127.0.0.1:8223/" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user