forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocelot.Development.json
More file actions
59 lines (58 loc) · 1.42 KB
/
ocelot.Development.json
File metadata and controls
59 lines (58 loc) · 1.42 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
59
{
"Routes": [
// blog-svc
{
"UpstreamPathTemplate": "/svc/blog/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
"LoadBalancerOptions": {
"Type": "RoundRobin"
},
"DownstreamPathTemplate": "/svc/blog/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9291
}
],
"AddHeadersToRequest": {
"user-phone": "Claims[user-phone] > value",
"gw-sign": "Claims[gw-sign] > value"
},
"UpstreamHeaderTransform": {
"custom-key": "blog.gateway"
},
"DownstreamHeaderTransform": {
"trace-id": "Trace-Id"
},
"AuthenticationOptions": {
"AuthenticationProviderKey": "GW"
},
"DelegatingHandlers": [
"CustomResultHandler"
]
},
// blog-svc-swagger
{
"UpstreamPathTemplate": "/swagger/apiswg/blog-svc/swagger.json",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/swagger/V2/swagger.json",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9291
}
],
"LoadBalancer": "RoundRobin"
}
],
"GlobalConfiguration": {
"BaseUrl": "http://localhost:9000",
"ServiceDiscoveryProvider": {
"Host": "localhost",
"Port": 8500,
"Type": "Consul"
}
}
}