From e80d72187337e0b9cb367d0d63ea29229f4119d1 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 6 Aug 2022 14:39:29 +0800 Subject: [PATCH] remove unnecessary routes --- .../ocelot.Development.json | 316 +----------------- 1 file changed, 1 insertion(+), 315 deletions(-) diff --git a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json index 264748395..4043370d4 100644 --- a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json +++ b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json @@ -1900,321 +1900,7 @@ "HttpHandlerOptions": { "UseTracing": true } - }, { - "DownstreamPathTemplate": "/api/manufacture/settings/by-current-user", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33330 - } - ], - "Key": "manufacture-setting-current-user", - "UpstreamPathTemplate": "/api/manufacture/settings/by-current-user/app", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - }, - "Priority": 99 - }, - { - "DownstreamPathTemplate": "/api/manufacture/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33330 - } - ], - "UpstreamPathTemplate": "/api/manufacture/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "UpstreamHeaderTransform": { - "X-Forwarded-For": "{RemoteIpAddress}" - }, - "DownstreamHeaderTransform": { - "X-Forwarded-For": "{RemoteIpAddress}" - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/certificate/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33339 - } - ], - "UpstreamPathTemplate": "/api/certificate/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/ufsoft/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33320 - } - ], - "UpstreamPathTemplate": "/api/ufsoft/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/marketing/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33335 - } - ], - "UpstreamPathTemplate": "/api/marketing/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/product-management/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33333 - } - ], - "UpstreamPathTemplate": "/api/product-management/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/stock-management/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33334 - } - ], - "UpstreamPathTemplate": "/api/stock-management/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE", "OPTIONS" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/micro-mall/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "10.21.15.13", - "Port": 52178 - } - ], - "UpstreamPathTemplate": "/api/micro-mall/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, - { - "DownstreamPathTemplate": "/api/invoice-management/settings/by-current-tenant", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 30010 - } - ], - "UpstreamPathTemplate": "/api/setting-management/invoice/by-current-tenant", - "UpstreamHttpMethod": [ - "GET" - ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": { - "ClientWhitelist": [], - "EnableRateLimiting": true, - "Period": "1s", - "PeriodTimespan": 1, - "Limit": 100 - }, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 10000 - }, - "HttpHandlerOptions": { - "UseTracing": true - }, - "Key": "invoice-setting-current-tenant" - }, - { - "DownstreamPathTemplate": "/api/invoice-management/settings/by-global", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 30010 - } - ], - "UpstreamPathTemplate": "/api/setting-management/invoice/by-global", - "UpstreamHttpMethod": [ - "GET" - ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": { - "ClientWhitelist": [], - "EnableRateLimiting": true, - "Period": "1s", - "PeriodTimespan": 1, - "Limit": 100 - }, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 10000 - }, - "HttpHandlerOptions": { - "UseTracing": true - }, - "Key": "invoice-setting-global" - }, - { - "DownstreamPathTemplate": "/api/invoice-management/invoices-reports/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33341 - } - ], - "UpstreamPathTemplate": "/api/invoice-management/invoices-reports/{everything}", - "UpstreamHttpMethod": [ "GET" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 120000 - }, - "HttpHandlerOptions": { - "UseTracing": true - }, - "Prioirty": 10 - }, - { - "DownstreamPathTemplate": "/api/invoice-management/{everything}", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "127.0.0.1", - "Port": 33341 - } - ], - "UpstreamPathTemplate": "/api/invoice-management/{everything}", - "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE" ], - "LoadBalancerOptions": { - "Type": "RoundRobin" - }, - "RateLimitOptions": {}, - "QoSOptions": { - "ExceptionsAllowedBeforeBreaking": 10, - "DurationOfBreak": 1000, - "TimeoutValue": 30000 - }, - "HttpHandlerOptions": { - "UseTracing": true - } - }, + }, { "DownstreamPathTemplate": "/api/abp/api-definition", "DownstreamScheme": "http",