forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcp_proxy.json
106 lines (105 loc) · 3.02 KB
/
tcp_proxy.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
105
106
{
"listeners": [
{
"address": "tcp://{{ ip_loopback_address }}:0",
"filters": [
{ "type": "read", "name": "tcp_proxy",
"config": {
"stat_prefix": "test_tcp",
"route_config": {
"routes": [
{
"cluster": "cluster_1"
}
]
},
"access_log": [
{
"path": "{{ test_tmpdir }}/tcp_{{ ip_loopback_address }}.log",
"format": "upstreamlocal=%UPSTREAM_LOCAL_ADDRESS% upstreamhost=%UPSTREAM_HOST% downstream=%DOWNSTREAM_ADDRESS%\n"
}
]
}
}
]
},
{
"address": "tcp://{{ ip_loopback_address }}:0",
"per_connection_buffer_limit_bytes": 1024,
"filters": [
{ "type": "read", "name": "tcp_proxy",
"config": {
"stat_prefix": "tcp_with_write_limits",
"route_config": {
"routes": [
{
"cluster": "cluster_with_buffer_limits"
}
]
}
}
}
]
},
{
"address": "tcp://{{ ip_loopback_address }}:0",
"per_connection_buffer_limit_bytes": 1024,
"ssl_context": {
"ca_cert_file": "{{ test_rundir }}/test/config/integration/certs/cacert.pem",
"cert_chain_file": "{{ test_rundir }}/test/config/integration/certs/servercert.pem",
"private_key_file": "{{ test_rundir }}/test/config/integration/certs/serverkey.pem",
"alpn_protocols": "h2,http/1.1",
"alt_alpn_protocols": "http/1.1"
},
"filters": [
{ "type": "read", "name": "tcp_proxy",
"config": {
"stat_prefix": "test_tcp_sans_tls",
"route_config": {
"routes": [
{
"cluster": "cluster_with_buffer_limits"
}
]
}
}
},
{ "type": "read", "name": "client_ssl_auth",
"config": {
"auth_api_cluster": "ssl_auth",
"stat_prefix": "ssl_stats",
"refresh_delay_ms": 600000,
"ip_white_list": [ "127.0.0.1/32", "::1/64"]
}
}
]
}],
"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": "tcp://{{ ip_loopback_address }}:{{ upstream_0 }}"}]
},
{
"name": "ssl_auth",
"connect_timeout_ms": 5000,
"type": "strict_dns",
"lb_type": "round_robin",
"dns_lookup_family": "{{ dns_lookup_family }}",
"hosts": [{"url": "tcp://localhost:4"}]
},
{
"name": "cluster_with_buffer_limits",
"connect_timeout_ms": 5000,
"type": "static",
"lb_type": "round_robin",
"per_connection_buffer_limit_bytes": 1024,
"hosts": [{"url": "tcp://{{ ip_loopback_address }}:{{ cluster_with_buffer_limits }}"}]
}]
}
}