Modify codex start script to use public ip for --nat

This commit is contained in:
Eric 2024-06-27 12:03:47 +10:00
parent 0ea0f60197
commit 18ecacda94
No known key found for this signature in database

View File

@ -16,7 +16,7 @@ ${CODEX_PATH}/build/codex \
--metrics=true \
--listen-addrs=/ip4/0.0.0.0/tcp/8070 \
--disc-port=8090 \
--nat=$(curl https://ip.codex.storage) \
--nat=$(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}') \
persistence \
--eth-private-key=./codex-setup/eth.key \
--eth-provider=https://rpc.testnet.codex.storage \