Skip to content

Instantly share code, notes, and snippets.

@moderation
Created April 13, 2021 02:59
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 moderation/7004f3fd47d54af5f52713528331a91b to your computer and use it in GitHub Desktop.
Save moderation/7004f3fd47d54af5f52713528331a91b to your computer and use it in GitHub Desktop.
envoy_upstream
admin:
access_log:
- name: envoy.access_loggers.file
typed_config:
'@type': type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: /tmp/admin_access.log
address:
socket_address:
address: ::0
ipv4_compat: true
port_value: 9902
protocol: TCP
layered_runtime:
layers:
- name: static-layer
static_layer:
envoy.http.headermap.lazy_map_min_size: 3
envoy.reloadable_features.new_tcp_connection_pool: true
envoy.reloadable_features.prefer_quic_kernel_bpf_packet_routing: true
envoy.reloadable_features.remove_legacy_json: true
static_resources:
clusters:
- name: service_quic_tech
connect_timeout: 2s
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: service_quic_tech
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: quic.tech
port_value: 8443
transport_socket:
name: envoy.transport_sockets.quic
typed_config:
'@type': type.googleapis.com/envoy.extensions.transport_sockets.quic.v3.QuicUpstreamTransport
upstream_tls_context:
allow_renegotiation: true
common_tls_context:
alpn_protocols: h3-29
sni: quic.tech
type: LOGICAL_DNS
typed_extension_protocol_options:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
common_http_protocol_options:
idle_timeout: 1s
explicit_http_config:
http3_protocol_options: {}
upstream_http_protocol_options:
auto_sni: true
listeners:
- name: listener_0
address:
socket_address:
address: ::0
ipv4_compat: true
port_value: 10000
protocol: TCP
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains:
- '*'
routes:
- match:
prefix: /
route:
host_rewrite_literal: quic.tech
cluster: service_quic_tech
http_filters:
- name: envoy.filters.http.router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment