Skip to content

Commit cf87d50

Browse files
PiotrSikoraggreenway
authored andcommitted
docs: update SNI FAQ. (#4285)
Fixes #4275. Signed-off-by: Piotr Sikora <[email protected]>
1 parent f952033 commit cf87d50

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

docs/root/faq/sni.rst

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,38 @@ The following is a YAML example of the above requirement.
2222
config: {}
2323
filter_chains:
2424
- filter_chain_match:
25-
server_names: "example.com"
25+
server_names: ["example.com", "www.example.com"]
2626
tls_context:
2727
common_tls_context:
2828
tls_certificates:
29-
- certificate_chain: { filename: "example_com_cert.pem" }
30-
private_key: { filename: "example_com_key.pem" }
29+
- certificate_chain: { filename: "example_com_cert.pem" }
30+
private_key: { filename: "example_com_key.pem" }
3131
filters:
3232
- name: envoy.http_connection_manager
3333
config:
34+
stat_prefix: ingress_http
3435
route_config:
3536
virtual_hosts:
36-
- routes:
37+
- name: default
38+
domains: "*"
39+
routes:
3740
- match: { prefix: "/" }
3841
route: { cluster: service_foo }
3942
- filter_chain_match:
40-
server_names: "www.example.com"
43+
server_names: "api.example.com"
4144
tls_context:
4245
common_tls_context:
4346
tls_certificates:
44-
- certificate_chain: { filename: "www_example_com_cert.pem" }
45-
private_key: { filename: "www_example_com_key.pem" }
47+
- certificate_chain: { filename: "api_example_com_cert.pem" }
48+
private_key: { filename: "api_example_com_key.pem" }
4649
filters:
4750
- name: envoy.http_connection_manager
4851
config:
52+
stat_prefix: ingress_http
4953
route_config:
5054
virtual_hosts:
51-
- routes:
55+
- name: default
56+
domains: "*"
57+
routes:
5258
- match: { prefix: "/" }
5359
route: { cluster: service_foo }

0 commit comments

Comments
 (0)