{ "Routes": [ { "UpstreamHttpMethod": [ "Get" ], "UpstreamPathTemplate": "/user/{postId}", "DownstreamPathTemplate": "/search?q=/{postId}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 443 } ], "QoSOptions": { "TimeoutValue": 5000 }, //"ServiceName": "auth", "LoadBalancerOptions": { "Type": "LeastConnection" }, "AuthenticationOptions": { "AuthenticationProviderKey": "MyKey", "AllowedScopes": [ "all" ] } }, { "UpstreamHttpMethod": [ "Get" ], "UpstreamPathTemplate": "/{url}", "DownstreamPathTemplate": "/search?q={url}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "cn.bing.com", "Port": 443 } ] } ], "GlobalConfiguration": { "BaseUrl": "https://api.mybusiness.com", "RequestIdKey": "TraceId" //"ServiceDiscoveryProvider": { // "Scheme": "https", // "Host": "localhost", // "Port": 8500, // "Type": "Consul" //} }, "RolesAuthorizer": { "Type": "http", "Url": "http://auth.huixin.com/api/authorizer", "Timeout": 2000 } }