Browse Source

feat: update ocelot routes.

pull/618/head
cKey 4 years ago
parent
commit
9b682071dc
  1. 2
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/Properties/launchSettings.json
  2. 36
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json

2
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/Properties/launchSettings.json

@ -12,7 +12,7 @@
"commandName": "Project",
"launchBrowser": false,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://127.0.0.1:30443;http://127.0.0.1:30000"
}

36
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json

@ -707,7 +707,7 @@
"Port": 30030
}
],
"UpstreamPathTemplate": "/api/abp/localization/application-configuration",
"UpstreamPathTemplate": "/api/abp/localization-management/application-configuration",
"UpstreamHttpMethod": [
"GET"
],
@ -734,7 +734,7 @@
"Port": 30030
}
],
"UpstreamPathTemplate": "/api/abp/localization/api-definition",
"UpstreamPathTemplate": "/api/abp/localization-management/api-definition",
"UpstreamHttpMethod": [
"GET"
],
@ -752,6 +752,38 @@
},
"Key": "localization-api-definition"
},
{
"DownstreamPathTemplate": "/api/abp/localization/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "127.0.0.1",
"Port": 30010
}
],
"UpstreamPathTemplate": "/api/abp/localization/{everything}",
"UpstreamHttpMethod": [
"GET"
],
"LoadBalancerOptions": {
"Type": "RoundRobin"
},
"RateLimitOptions": {
"ClientWhitelist": [],
"EnableRateLimiting": true,
"Period": "1s",
"PeriodTimespan": 1,
"Limit": 5
},
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 10,
"DurationOfBreak": 1000,
"TimeoutValue": 10000
},
"HttpHandlerOptions": {
"UseTracing": true
}
},
{
"DownstreamPathTemplate": "/api/localization/{everything}",
"DownstreamScheme": "http",

Loading…
Cancel
Save