Skip to content

Instantly share code, notes, and snippets.

@mandarjog
Last active September 23, 2020 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandarjog/b4263bc103311639c498a87ec326fe61 to your computer and use it in GitHub Desktop.
Save mandarjog/b4263bc103311639c498a87ec326fe61 to your computer and use it in GitHub Desktop.
admin:
access_log_path: "/dev/null"
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 9901
layered_runtime:
layers:
- name: static_layer_0
static_layer:
overload:
global_downstream_max_connections: 50000
- name: admin_layer_0
admin_layer: {}
static_resources:
listeners:
- address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 10000
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match:
prefix: "/"
route:
host_rewrite: www.google.com
cluster: cluster
http_filters:
- name: envoy.filters.http.wasm
config:
config:
vm_config:
runtime: "envoy.wasm.runtime.null"
code: { local: { inline_string: "envoy.wasm.metadata_exchange" } }
- name: envoy.router
config: {}
clusters:
- name: cluster
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:
protocol: TCP
address: google.com
port_value: 443
tls_context:
sni: "google.com"
common_tls_context:
tls_params:
tls_minimum_protocol_version: TLSv1_0
tls_maximum_protocol_version: TLSv1_3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment