forked from dotnet/yarp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
58 lines (58 loc) · 1.22 KB
/
appsettings.json
File metadata and controls
58 lines (58 loc) · 1.22 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"https": {
"Url": "https://localhost:5001"
},
"http": {
"Url": "http://localhost:5000"
}
}
},
"ReverseProxy": {
"Routes": {
"route1": {
"ClusterId": "cluster1",
"Match": {
"Methods": [ "GET", "POST" ],
"Hosts": [ "localhost" ],
"Path": "/api/{**catch-all}"
}
},
"route2": {
"ClusterId": "cluster2",
"Match": {
"Path": "{**catch-all}"
}
}
},
"Clusters": {
"cluster1": {
"Destinations": {
"cluster1/destination1": {
// Following value will be found by regex and looked up as an environment variable
"Address": "{{contoso}}"
},
"cluster1/destination2": {
"Address": "https://bing.com/"
}
}
},
"cluster2": {
"Destinations": {
"cluster2/destination1": {
"Address": "https://example.com/"
}
}
}
}
}
}