You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

{
"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
}
}