forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver_uds.json
104 lines (102 loc) · 2.57 KB
/
server_uds.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"listeners": [
{
"address": "tcp://{{ ip_loopback_address }}:0",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "http1",
"access_log": [
{
"path": "/dev/null",
"filter" : {
"type": "logical_or",
"filters": [
{
"type": "status_code",
"op": ">=",
"value": 500
},
{
"type": "duration",
"op": ">=",
"value": 1000000
}
]
}
},
{
"path": "/dev/null"
}],
"stat_prefix": "router",
"route_config":
{
"virtual_hosts": [
{
"name": "redirect",
"domains": [ "www.redirect.com" ],
"require_ssl": "all",
"routes": [
{
"prefix": "/",
"cluster": "cluster_1"
}
]
},
{
"name": "integration",
"domains": [ "*" ],
"routes": [
{
"prefix": "/",
"cluster": "cluster_1",
"runtime": {
"key": "some_key",
"default": 0
}
},
{
"prefix": "/test/long/url",
"cluster": "cluster_1"
},
{
"prefix": "/test/",
"cluster": "cluster_2"
}
]
}
]
},
"filters": [
{ "type": "both", "name": "health_check",
"config": {
"pass_through_mode": false, "endpoint": "/healthcheck"
}
},
{ "type": "decoder", "name": "router", "config": {} }
]
}
}]
}],
"admin": { "access_log_path": "/dev/null", "address": "tcp://{{ ip_loopback_address }}:0" },
"statsd_udp_ip_address": "{{ ip_loopback_address }}:8125",
"cluster_manager": {
"clusters": [
{
"name": "cluster_1",
"connect_timeout_ms": 5000,
"type": "static",
"lb_type": "round_robin",
"hosts": [{"url": "unix://{{ test_udsdir }}/udstest.1.sock"}]
},
{
"name": "cluster_2",
"connect_timeout_ms": 5000,
"type": "static",
"lb_type": "round_robin",
"hosts": [{"url": "unix://{{ test_udsdir }}/udstest.2.sock"}]
}]
}
}