fix: 适配YARP路由配置格式
This commit is contained in:
@@ -3,23 +3,20 @@
|
||||
"Enabled": false
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": [
|
||||
{
|
||||
"RouteId": "admin-route",
|
||||
"Routes": {
|
||||
"admin-route": {
|
||||
"ClusterId": "admin",
|
||||
"Match": { "Path": "/api/admin/{**catch-all}" }
|
||||
},
|
||||
{
|
||||
"RouteId": "mini-route",
|
||||
"mini-route": {
|
||||
"ClusterId": "mini",
|
||||
"Match": { "Path": "/api/mini/{**catch-all}" }
|
||||
},
|
||||
{
|
||||
"RouteId": "user-route",
|
||||
"user-route": {
|
||||
"ClusterId": "user",
|
||||
"Match": { "Path": "/api/user/{**catch-all}" }
|
||||
}
|
||||
],
|
||||
},
|
||||
"Clusters": {
|
||||
"admin": {
|
||||
"Destinations": {
|
||||
|
||||
@@ -36,23 +36,20 @@
|
||||
"OtlpEndpoint": "http://localhost:4317"
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": [
|
||||
{
|
||||
"RouteId": "admin-route",
|
||||
"Routes": {
|
||||
"admin-route": {
|
||||
"ClusterId": "admin",
|
||||
"Match": { "Path": "/api/admin/{**catch-all}" }
|
||||
},
|
||||
{
|
||||
"RouteId": "mini-route",
|
||||
"mini-route": {
|
||||
"ClusterId": "mini",
|
||||
"Match": { "Path": "/api/mini/{**catch-all}" }
|
||||
},
|
||||
{
|
||||
"RouteId": "user-route",
|
||||
"user-route": {
|
||||
"ClusterId": "user",
|
||||
"Match": { "Path": "/api/user/{**catch-all}" }
|
||||
}
|
||||
],
|
||||
},
|
||||
"Clusters": {
|
||||
"admin": {
|
||||
"Destinations": {
|
||||
|
||||
Reference in New Issue
Block a user