-
Notifications
You must be signed in to change notification settings - Fork 1
/
ocelot.json
38 lines (38 loc) · 986 Bytes
/
ocelot.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"Routes": [
{
"ServiceName": "UserAPI",
"UseServiceDiscovery": true,
"LoadBalancerOptions": {
"Type": "LeastConnection"
},
"DownstreamScheme": "http",
"DownstreamPathTemplate": "/User_API/swagger.json",
"UpstreamPathTemplate": "/User_API/swagger.json",
"UpstreamHttpMethod": ["GET","POST","PUT","DELETE"]
}
],
"GlobalConfiguration": {
"BaseUrl": "http://localhost:2000",
"ServiceDiscoveryProvider": {
"Host": "127.0.0.1",
"Port": 8500,
"Type": "Consul"
},
"RateLimitOptions": {
"DisableRateLimitHeaders": false,
"QuotaExceededMessage": "API calls quota exceeded!",
"HttpStatusCode": 999,
"EnableRateLimiting": true,
"Period": "1s",
"PeriodTimespan": 5,
"Limit": 50
},
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 5,
"DurationOfBreak": 5,
"TimeoutValue": 5000
},
"ReRoutesCaseSensitive": false
}
}