From 52b7c6e24db2bc75e285590d2138037cea0aae06 Mon Sep 17 00:00:00 2001 From: dappnodedev Date: Wed, 14 Aug 2024 17:46:18 +0200 Subject: [PATCH] Fix JWT path --- beacon-chain/Dockerfile | 2 +- beacon-chain/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/Dockerfile b/beacon-chain/Dockerfile index ef42ff9..20918a5 100644 --- a/beacon-chain/Dockerfile +++ b/beacon-chain/Dockerfile @@ -7,7 +7,7 @@ ARG STAKER_SCRIPTS_VERSION ARG DATA_DIR ARG P2P_PORT -ENV JWT_SECRET_FILE=/jwtsecret.hex \ +ENV JWT_FILE_PATH=/jwtsecret.hex \ VALIDATOR_PORT=3500 \ DATA_DIR=${DATA_DIR} \ P2P_PORT=${P2P_PORT} \ diff --git a/beacon-chain/entrypoint.sh b/beacon-chain/entrypoint.sh index 487fc1d..cabfcf6 100755 --- a/beacon-chain/entrypoint.sh +++ b/beacon-chain/entrypoint.sh @@ -10,7 +10,7 @@ VALID_FEE_RECIPIENT=$(get_valid_fee_recipient "${FEE_RECIPIENT}") MEVBOOST_FLAG=$(get_mevboost_flag "${NETWORK}" "${MEVBOOST_FLAG_KEYS}") JWT_SECRET=$(get_jwt_secret_by_network "${NETWORK}") -touch "${JWT_SECRET_FILE}" +touch "${JWT_FILE_PATH}" echo "${JWT_SECRET}" >"${JWT_FILE_PATH}" if [ -n "$(ls -A "${DATA_DIR}/db" 2>/dev/null)" ]; then @@ -44,6 +44,6 @@ exec ${NIMBUS_BIN} \ --metrics \ --metrics-address=0.0.0.0 \ --metrics-port=8008 \ - --jwt-secret="${JWT_SECRET_FILE}" \ + --jwt-secret="${JWT_FILE_PATH}" \ --web3-url="${ENGINE_URL}" \ --suggested-fee-recipient="${VALID_FEE_RECIPIENT}" ${MEVBOOST_FLAG} ${EXTRA_OPTS}