mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 08:18:15 +08:00
23
samples/OcelotEureka/ApiGateway/ocelot.json
Normal file
23
samples/OcelotEureka/ApiGateway/ocelot.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"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" }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user