Skip to content

Commit 5235717

Browse files
authored
Add beacon node headers env vars (#154)
* Add bn headers env vars * Missing #
1 parent c637061 commit 5235717

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
# Connect to one or more external beacon nodes. Use a comma separated list excluding spaces.
4545
#CHARON_BEACON_NODE_ENDPOINTS=
4646

47+
# Pass HTTP Headers to all beacon node endpoints. (Comma separated, key=value strings).
48+
#CHARON_BEACON_NODE_HEADERS=
49+
4750
# Override the charon logging level; debug, info, warning, error.
4851
#CHARON_LOG_LEVEL=
4952

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ x-node-base:
1111
x-node-env:
1212
&node-env
1313
CHARON_BEACON_NODE_ENDPOINTS: ${CHARON_BEACON_NODE_ENDPOINTS:-http://lighthouse:5052}
14+
CHARON_BEACON_NODE_HEADERS: ${CHARON_BEACON_NODE_HEADERS:-IgnoredHTTP=header}
1415
CHARON_LOG_LEVEL: ${CHARON_LOG_LEVEL:-info}
1516
CHARON_LOG_FORMAT: ${CHARON_LOG_FORMAT:-console}
1617
CHARON_P2P_EXTERNAL_HOSTNAME: ${CHARON_P2P_EXTERNAL_HOSTNAME:-} # Empty default required to avoid warnings.
@@ -187,7 +188,6 @@ services:
187188
validator-client
188189
--beacon-node-api-endpoint="http://node1:3600"
189190
--config-file "/opt/charon/teku/teku-config.yaml"
190-
--Xblock-v3-enabled=false
191191
volumes:
192192
- .charon/cluster/node1/validator_keys:/opt/charon/validator_keys
193193
- ./teku:/opt/charon/teku
@@ -225,7 +225,6 @@ services:
225225
validator-client
226226
--beacon-node-api-endpoint="http://node4:3600"
227227
--config-file "/opt/charon/teku/teku-config.yaml"
228-
--Xblock-v3-enabled=false
229228
volumes:
230229
- .charon/cluster/node4/validator_keys:/opt/charon/validator_keys
231230
- ./teku:/opt/charon/teku

0 commit comments

Comments
 (0)