From 04062f675a057576b7d2b43b878c73eebcdd604a Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 2 Feb 2025 07:27:47 +0100 Subject: [PATCH] public ip --- fantom.yml | 1 + fantom/scripts/entrypoint-fullnode.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/fantom.yml b/fantom.yml index 01fde144..f83ad87d 100644 --- a/fantom.yml +++ b/fantom.yml @@ -9,6 +9,7 @@ services: stop_grace_period: 3m environment: - CACHE_SIZE=${FANTOM_CACHE_SIZE:-16000} + - IP=${IP} volumes: - "fantom:/datadir" expose: diff --git a/fantom/scripts/entrypoint-fullnode.sh b/fantom/scripts/entrypoint-fullnode.sh index 0ffcf1cc..63612b22 100644 --- a/fantom/scripts/entrypoint-fullnode.sh +++ b/fantom/scripts/entrypoint-fullnode.sh @@ -27,6 +27,7 @@ opera \ --http.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc,trace \ --http.corsdomain="*" \ --http.vhosts="*" \ + --nat extip:${IP} \ --ws \ --ws.addr=0.0.0.0 \ --ws.port=18544 \