Skip to content

Commit

Permalink
docs: update SNI FAQ.
Browse files Browse the repository at this point in the history
Fixes envoyproxy#4275.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora committed Aug 28, 2018
1 parent 329e591 commit 05c64cb
Showing 1 changed file with 14 additions and 8 deletions.
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 }

0 comments on commit 05c64cb

Please sign in to comment.