forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_ssl.json
121 lines (119 loc) · 3.49 KB
/
server_ssl.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"listeners": [
{
"address": "tcp://{{ ip_loopback_address }}:0",
"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",
"verify_certificate_hash": "E0:F3:C8:CE:5E:2E:A3:05:F0:70:1F:F5:12:E3:6E:2E:97:92:82:84:A2:28:BC:F7:73:32:D3:39:30:A1:B6:FD",
"alpn_protocols": "h2,http/1.1",
"alt_alpn_protocols": "http/1.1"
},
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
"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": true, "cache_time_ms": 2500, "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,
"ssl_context": {
"ca_cert_file": "{{ test_rundir }}/test/config/integration/certs/upstreamcacert.pem",
"verify_subject_alt_name": [ "foo.lyft.com" ]
},
"type": "static",
"lb_type": "round_robin",
"hosts": [{"url": "tcp://{{ ip_loopback_address }}:{{ upstream_0 }}"}]
},
{
"name": "cluster_2",
"connect_timeout_ms": 5000,
"ssl_context": {
"ca_cert_file": "{{ test_rundir }}/test/config/integration/certs/upstreamcacert.pem",
"verify_subject_alt_name": [ "foo.lyft.com" ]
},
"type": "strict_dns",
"lb_type": "round_robin",
"dns_lookup_family": "{{ dns_lookup_family }}",
"hosts": [{"url": "tcp://localhost:{{ upstream_1 }}"}]
}]
}
}