-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocelot.json
37 lines (37 loc) · 871 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
{
"Routes": [
{
"DownstreamPathTemplate": "/api/{everything}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 44340
}
],
"UpstreamPathTemplate": "/{everything}",
"UpstreamHttpMethod": [ "GET", "POST" ],
//"AuthenticationOptions": {
// "AuthenticationProviderKey": "IdentityApiKey",
// "AllowedScopes": []
//},
"LoadBalancerOptions": {
"Type": "RoundRobin"
},
"RetryPolicy": {
"RetryCount": 3,
"RetryBackOff": 1000
}
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:7090",
//"RequestIdKey": "OcRequestId",
//"ServiceDiscoveryProvider": {
// "Type": "Consul",
// "Host": "localhost",
// "Port": 8500,
// "Token": ""
//}
}
}