Instantly share code, notes, and snippets.

Embed
What would you like to do?
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 9901
static_resources:
listeners:
- name: listener_0
address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 10000
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match:
prefix: "/"
route:
host_rewrite: www.yahoo.co.jp
cluster: service_yahoojp
http_filters:
- name: envoy.router
clusters:
- name: service_yahoojp
connect_timeout: 0.25s
type: LOGICAL_DNS
# Comment out the following line to test on v6 networks
dns_lookup_family: V4_ONLY
lb_policy: ROUND_ROBIN
hosts:
- socket_address:
address: yahoo.co.jp
port_value: 443
tls_context: { sni: www.yahoo.co.jp }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment