Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions docs/root/faq/sni.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,38 @@ The following is a YAML example of the above requirement.
config: {}
filter_chains:
- filter_chain_match:
server_names: "example.com"
server_names: ["example.com", "www.example.com"]
tls_context:
common_tls_context:
tls_certificates:
- certificate_chain: { filename: "example_com_cert.pem" }
private_key: { filename: "example_com_key.pem" }
- certificate_chain: { filename: "example_com_cert.pem" }
private_key: { filename: "example_com_key.pem" }
filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
virtual_hosts:
- routes:
- name: default
domains: "*"
routes:
- match: { prefix: "/" }
route: { cluster: service_foo }
- filter_chain_match:
server_names: "www.example.com"
server_names: "api.example.com"
tls_context:
common_tls_context:
tls_certificates:
- certificate_chain: { filename: "www_example_com_cert.pem" }
private_key: { filename: "www_example_com_key.pem" }
- certificate_chain: { filename: "api_example_com_cert.pem" }
private_key: { filename: "api_example_com_key.pem" }
filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
virtual_hosts:
- routes:
- name: default
domains: "*"
routes:
- match: { prefix: "/" }
route: { cluster: service_foo }