mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-24 10:12:51 +08:00
24 lines
625 B
JSON
24 lines
625 B
JSON
{
|
|
"ReRoutes": [
|
|
{
|
|
"DownstreamPathTemplate": "/api/Category",
|
|
"DownstreamScheme": "http",
|
|
"UpstreamPathTemplate": "/Category",
|
|
"UseServiceDiscovery": true,
|
|
"ServiceName": "ncore-rat",
|
|
"UpstreamHttpMethod": [ "Get" ],
|
|
"QoSOptions": {
|
|
"ExceptionsAllowedBeforeBreaking": 3,
|
|
"DurationOfBreak": 10000,
|
|
"TimeoutValue": 5000
|
|
},
|
|
"FileCacheOptions": { "TtlSeconds": 15 }
|
|
}
|
|
],
|
|
"GlobalConfiguration": {
|
|
"RequestIdKey": "OcRequestId",
|
|
"AdministrationPath": "/administration",
|
|
"ServiceDiscoveryProvider": { "Type": "Eureka" }
|
|
}
|
|
}
|