Skip to content

Instantly share code, notes, and snippets.

@strophy

strophy/grpc.yaml

Last active Feb 3, 2021
Embed
What would you like to do?
dash platform envoy configuration file
static_resources:
listeners:
- name: listener_0
address:
socket_address:
address: 0.0.0.0
port_value: 8080
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
access_log:
- name: envoy.access_loggers.file
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: /dev/stdout
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: dapi_services
domains: ["*"]
routes:
- match:
prefix: "/org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofs"
route:
cluster: tx_filter_stream
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: "/org.dash.platform.dapi.v0.Core"
route:
cluster: core_and_platform
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: "/org.dash.platform.dapi.v0.Platform"
route:
cluster: core_and_platform
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: "/grpc.health.v1.Health"
route:
cluster: tx_filter_stream
max_stream_duration:
grpc_timeout_header_max: 0s
http_filters:
- name: envoy.filters.http.grpc_web
- name: envoy.filters.http.router
clusters:
- name: core_and_platform
connect_timeout: 0.25s
type: LOGICAL_DNS
dns_lookup_family: V4_ONLY
http2_protocol_options: {}
load_assignment:
cluster_name: core_and_platform
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: dapi_api
port_value: 3005
- name: tx_filter_stream
connect_timeout: 0.25s
type: LOGICAL_DNS
dns_lookup_family: V4_ONLY
http2_protocol_options: {}
load_assignment:
cluster_name: tx_filter_stream
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: dapi_tx_filter_stream
port_value: 3006
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment