You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
{
|
|
|
|
|
//这里注意,以前是ReRoutes现在是Routes
|
|
|
|
|
"Routes": [
|
|
|
|
|
{
|
|
|
|
|
"DownstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
{
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
"Port": 3000
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"UpstreamPathTemplate": "/WmsMainAPI/swagger.json",
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
"Get",
|
|
|
|
|
"Post"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"DownstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
|
"DownstreamScheme": "http",
|
|
|
|
|
"DownstreamHostAndPorts": [
|
|
|
|
|
{
|
|
|
|
|
"Host": "localhost",
|
|
|
|
|
"Port": 3000
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"UpstreamPathTemplate": "/mainApi/{url}",
|
|
|
|
|
"UpstreamHttpMethod": [
|
|
|
|
|
"Get",
|
|
|
|
|
"Post"
|
|
|
|
|
],
|
|
|
|
|
"LoadBalancerOptions": {
|
|
|
|
|
"Type": "RoundRobin"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"GlobalConfiguration": {
|
|
|
|
|
"BaseUrl": "http://localhost:3008",
|
|
|
|
|
"RateLimitOptions": {
|
|
|
|
|
"DisableRateLimitHeaders": false,
|
|
|
|
|
"QuotaExceededMessage": "Too many requests, are you OK?",
|
|
|
|
|
"HttpStatusCode": 999,
|
|
|
|
|
"ClientIdHeader": "client_id"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|