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.
 
 
 
Tiobon.Web.Core/Tiobon.Core.Gateway/ocelot.Development.json

54 lines
1.3 KiB

{
"Routes": [
// Tiobon-svc
{
"UpstreamPathTemplate": "/svc/Tiobon/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
"LoadBalancerOptions": {
"Type": "RoundRobin"
},
"DownstreamPathTemplate": "/svc/Tiobon/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9291
}
],
"AddHeadersToRequest": {
"user-phone": "Claims[user-phone] > value",
"gw-sign": "Claims[gw-sign] > value"
},
"UpstreamHeaderTransform": {
"custom-key": "Tiobon.gateway"
},
"DownstreamHeaderTransform": {
"trace-id": "Trace-Id"
},
"AuthenticationOptions": {
"AuthenticationProviderKey": "GW"
},
"DelegatingHandlers": [
"CustomResultHandler"
]
},
// Tiobon-svc-swagger
{
"UpstreamPathTemplate": "/swagger/apiswg/Tiobon-svc/swagger.json",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/swagger/V2/swagger.json",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9291
}
],
"LoadBalancer": "RoundRobin"
}
],
"GlobalConfiguration": {
"BaseUrl": "http://localhost:9000"
}
}