|
|
@ -1,72 +1,139 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//这里注意,以前是ReRoutes现在是Routes
|
|
|
|
//这里注意,以前是ReRoutes现在是Routes
|
|
|
|
"Routes": [
|
|
|
|
"Routes": [
|
|
|
|
{
|
|
|
|
|
|
|
|
"DownstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"Host": "localhost",
|
|
|
|
"DownstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
"Port": 3000
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
}
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
],
|
|
|
|
{
|
|
|
|
"UpstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
"Host": "localhost",
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
"Port": 3000
|
|
|
|
"Get",
|
|
|
|
}
|
|
|
|
"Post"
|
|
|
|
],
|
|
|
|
]
|
|
|
|
"UpstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
},
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
{
|
|
|
|
"Get",
|
|
|
|
"DownstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
"Post"
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
]
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"Host": "localhost",
|
|
|
|
"DownstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
"Port": 3000
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
}
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
],
|
|
|
|
{
|
|
|
|
"UpstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
"Host": "localhost",
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
"Port": 3000
|
|
|
|
"Get",
|
|
|
|
}
|
|
|
|
"Post"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"UpstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
"Get",
|
|
|
|
}
|
|
|
|
"Post"
|
|
|
|
},{
|
|
|
|
],
|
|
|
|
"DownstreamPathTemplate": "/WmsAdminAPI/swagger.json",
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"Host": "localhost",
|
|
|
|
"DownstreamPathTemplate": "/WmsAdminAPI/swagger.json",
|
|
|
|
"Port": 3001
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
}
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
],
|
|
|
|
{
|
|
|
|
"UpstreamPathTemplate": "/WmsAdminAPI/swagger.json",
|
|
|
|
"Host": "localhost",
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
"Port": 3001
|
|
|
|
"Get",
|
|
|
|
}
|
|
|
|
"Post"
|
|
|
|
],
|
|
|
|
]
|
|
|
|
"UpstreamPathTemplate": "/WmsAdminAPI/swagger.json",
|
|
|
|
},
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
{
|
|
|
|
"Get",
|
|
|
|
"DownstreamPathTemplate": "/adminApi/{url}",
|
|
|
|
"Post"
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
]
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"DownstreamPathTemplate": "/adminApi/{url}",
|
|
|
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
|
|
|
"Port": 3001
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"UpstreamPathTemplate": "/adminApi/{url}",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"Host": "localhost",
|
|
|
|
"DownstreamPathTemplate": "/WmsOpAPI/swagger.json",
|
|
|
|
"Port": 3001
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
|
|
|
"Port": 3002
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"UpstreamPathTemplate": "/WmsOpAPI/swagger.json",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"DownstreamPathTemplate": "/opApi/{url}",
|
|
|
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
|
|
|
"Port": 3002
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"UpstreamPathTemplate": "/opApi/{url}",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"DownstreamPathTemplate": "/WmsFeeAPI/swagger.json",
|
|
|
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
|
|
|
"Port": 3003
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"UpstreamPathTemplate": "/WmsFeeAPI/swagger.json",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"DownstreamPathTemplate": "/feeApi/{url}",
|
|
|
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
|
|
|
"Port": 3003
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"UpstreamPathTemplate": "/feeApi/{url}",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"UpstreamPathTemplate": "/adminApi/{url}",
|
|
|
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
|
|
|
"Get",
|
|
|
|
|
|
|
|
"Post"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"GlobalConfiguration": {
|
|
|
|
"GlobalConfiguration": {
|
|
|
|
"BaseUrl": "http://localhost:3008",
|
|
|
|
"BaseUrl": "http://localhost:3008",
|
|
|
|
"RateLimitOptions": {
|
|
|
|
"RateLimitOptions": {
|
|
|
|