Skip to content

Commit

Permalink
Adding backwards compatible IPv6 support
Browse files Browse the repository at this point in the history
These changes let Envoy listen on all IPv6 addresses (i.e., "::") in addition to IPv4 addresses (i.e., "0.0.0.0"). Related to issue #76.
  • Loading branch information
kay-is authored and djwhitt committed Jan 22, 2024
1 parent b77dfdb commit 0195270
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions envoy/envoy.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
---
admin:
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
socket_address: { address: '::', port_value: 9901, ipv4_compat: true }
static_resources:
listeners:
- name: arweave_listener
address:
socket_address: { address: 0.0.0.0, port_value: 3000 }
socket_address: { address: '::', port_value: 3000, ipv4_compat: true }
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
Expand Down Expand Up @@ -129,6 +129,7 @@ static_resources:
socket_address:
address: #@ data.values.AR_IO_HOST
port_value: #@ data.values.AR_IO_PORT
ipv4_compat: true
- name: graphql_gateways
connect_timeout: 1s
type: STRICT_DNS
Expand All @@ -143,6 +144,7 @@ static_resources:
socket_address:
address: #@ data.values.GRAPHQL_HOST
port_value: #@ data.values.GRAPHQL_PORT
ipv4_compat: true
#@ if data.values.GRAPHQL_PORT == "443":
transport_socket:
name: envoy.transport_sockets.tls
Expand All @@ -167,6 +169,7 @@ static_resources:
socket_address:
address: #@ data.values.OBSERVER_HOST
port_value: #@ data.values.OBSERVER_PORT
ipv4_compat: true
- name: legacy_gateways
connect_timeout: 1s
type: STRICT_DNS
Expand Down

0 comments on commit 0195270

Please sign in to comment.