chore: 关闭生产Swagger并移除网关转发

This commit is contained in:
2025-12-04 22:42:46 +08:00
parent 64a5f61a6a
commit a42f470113
5 changed files with 62 additions and 69 deletions

View File

@@ -2,30 +2,16 @@
"OpenTelemetry": {
"Enabled": false
},
"ReverseProxy": {
"Routes": {
"admin-route": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/{**catch-all}" }
},
"admin-swagger": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/swagger/{**catch-all}" },
"Transforms": [
{ "PathRemovePrefix": "/api/admin" }
]
},
"admin-swagger-v": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/v{version}/swagger/{**catch-all}" },
"Transforms": [
{ "PathPattern": "/swagger/{**catch-all}" }
]
},
"mini-route": {
"ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" }
},
"ReverseProxy": {
"Routes": {
"admin-route": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/{**catch-all}" }
},
"mini-route": {
"ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" }
},
"user-route": {
"ClusterId": "user",
"Match": { "Path": "/api/user/{**catch-all}" }

View File

@@ -35,30 +35,16 @@
"ServiceName": "TakeoutSaaS.ApiGateway",
"OtlpEndpoint": "http://localhost:4317"
},
"ReverseProxy": {
"Routes": {
"admin-route": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/{**catch-all}" }
},
"admin-swagger": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/swagger/{**catch-all}" },
"Transforms": [
{ "PathRemovePrefix": "/api/admin" }
]
},
"admin-swagger-v": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/v{version}/swagger/{**catch-all}" },
"Transforms": [
{ "PathPattern": "/swagger/{**catch-all}" }
]
},
"mini-route": {
"ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" }
},
"ReverseProxy": {
"Routes": {
"admin-route": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/{**catch-all}" }
},
"mini-route": {
"ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" }
},
"user-route": {
"ClusterId": "user",
"Match": { "Path": "/api/user/{**catch-all}" }