{ //这里注意,以前是ReRoutes现在是Routes "Routes": [ { "DownstreamPathTemplate": "/openapi/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3006 } ], "UpstreamPathTemplate": "/openapi/{url}", "UpstreamHttpMethod": [ "Get", "Post" ], "LoadBalancerOptions": { "Type": "RoundRobin" } }, { "DownstreamPathTemplate": "/hkapi/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3006 } ], "UpstreamPathTemplate": "/hkapi/{url}", "UpstreamHttpMethod": [ "Get", "Post" ], "LoadBalancerOptions": { "Type": "RoundRobin" } }, { "DownstreamPathTemplate": "/appapi/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3009 } ], "UpstreamPathTemplate": "/appapi/{url}", "UpstreamHttpMethod": [ "Get", "Post" ], "LoadBalancerOptions": { "Type": "RoundRobin" } }, { "DownstreamPathTemplate": "/connect/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3005 } ], "UpstreamPathTemplate": "/connect/{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" } } }