How do I configure SNI?
SNI is only supported in the v2 configuration/API.
Attention
TLS Inspector listener filter must be configured in order to detect requested SNI.
The following is a YAML example of the above requirement.
address:socket_address: { address: 127.0.0.1, port_value: 1234 }listener_filters:- name: "envoy.listener.tls_inspector"typed_config: {}filter_chains:- filter_chain_match:server_names: ["example.com", "www.example.com"]transport_socket:name: envoy.transport_sockets.tlstyped_config:"@type": type.googleapis.com/envoy.api.v2.auth.DownstreamTlsContextcommon_tls_context:tls_certificates:- certificate_chain: { filename: "example_com_cert.pem" }private_key: { filename: "example_com_key.pem" }filters:- name: envoy.http_connection_managertyped_config:"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManagerstat_prefix: ingress_httproute_config:virtual_hosts:- name: defaultdomains: "*"routes:- match: { prefix: "/" }route: { cluster: service_foo }- filter_chain_match:server_names: "api.example.com"transport_socket:name: envoy.transport_sockets.tlstyped_config:"@type": type.googleapis.com/envoy.api.v2.auth.DownstreamTlsContextcommon_tls_context:tls_certificates:- certificate_chain: { filename: "api_example_com_cert.pem" }private_key: { filename: "api_example_com_key.pem" }filters:- name: envoy.http_connection_managertyped_config:"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManagerstat_prefix: ingress_httproute_config:virtual_hosts:- name: defaultdomains: "*"routes:- match: { prefix: "/" }route: { cluster: service_foo }