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