-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvoy_config2.json
103 lines (103 loc) · 2.52 KB
/
envoy_config2.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
{
"static_resources": {
"listeners": [
{
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 15002
}
},
"listener_filters": [
{
"name": "envoy.listener.tls_inspector",
"config": {
}
}
],
"filter_chains": [
{
"filter_chain_match": {
"server_names": "envoy2.local"
},
"tlsContext": {
"commonTlsContext": {
"tlsCertificates": [
{
"certificateChain": {
"filename": "/etc/my-envoy-certs/envoy2.crt"
},
"privateKey": {
"filename": "/etc/my-envoy-certs/envoy2.key"
}
}
],
"validationContext": {
"trustedCa": {
"filename": "/etc/my-envoy-certs/envoy1.crt"
}
},
"alpnProtocols": [
"h2",
"http/1.1"
]
},
"requireClientCertificate": true
},
"filters": [
{
"name": "envoy.network_level_sni_reader",
"config": {}
},
{
"name": "GetSNIsFilter",
"config": {}
},
{
"name": "envoy.tcp_proxy",
"config": {
"stat_prefix": "envoy2.local",
"access_log": [
{
"config": {
"path": "/dev/stdout"
},
"name": "envoy.file_access_log"
}
],
"cluster": "cnn"
}
}
]
}
]
}
],
"clusters": [
{
"name": "cnn",
"connect_timeout": "2.5s",
"type": "strict_dns",
"lb_policy": "round_robin",
"hosts": [
{
"socket_address": {
"address": "edition.cnn.com",
"port_value": 443
}
}
],
"dns_lookup_family" : "v4_only"
}
]
},
"admin": {
"access_log_path": "/dev/null",
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 8002
}
}
}
}