Merge pull request #5 from waku-org/fix/public-ip

fix: detecting public ip
This commit is contained in:
Prem Chaitanya Prathi 2023-11-30 11:06:22 +05:30 committed by GitHub
commit ba73fe0120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@ if [ -z "${ETH_CLIENT_ADDRESS}" ]; then
exit 1
fi
apt install -y wget
MY_EXT_IP=$(wget -qO- https://api4.ipify.org)
DNS_WSS_CMD=
@ -83,6 +85,7 @@ exec /usr/bin/waku\
--metrics-server-port=8003\
--metrics-server-address=0.0.0.0\
--rest=true\
--rest-admin=false\
--rest-address=0.0.0.0\
--rest-port=8645\
--nat=extip:"${MY_EXT_IP}"\