mirror of
https://github.com/logos-messaging/logos-messaging-nim-compose.git
synced 2026-01-02 14:03:11 +00:00
customize run script for cluster 42
This commit is contained in:
parent
5b8f735d8b
commit
9e6e82b61b
27
run_node.sh
27
run_node.sh
@ -2,16 +2,16 @@
|
||||
|
||||
echo "I am a nwaku node"
|
||||
|
||||
if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then
|
||||
echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS"
|
||||
echo "Please update your .env file"
|
||||
exit 1
|
||||
fi
|
||||
# if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then
|
||||
# echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS"
|
||||
# echo "Please update your .env file"
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then
|
||||
echo "Missing Eth client address, please refer to README.md for detailed instructions"
|
||||
exit 1
|
||||
fi
|
||||
# if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then
|
||||
# echo "Missing Eth client address, please refer to README.md for detailed instructions"
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
MY_EXT_IP=$(wget -qO- https://api4.ipify.org)
|
||||
DNS_WSS_CMD=
|
||||
@ -106,7 +106,10 @@ exec /usr/bin/wakunode\
|
||||
--lightpush=true\
|
||||
--keep-alive=true\
|
||||
--max-connections=150\
|
||||
--cluster-id=1\
|
||||
--cluster-id=42\
|
||||
--num-shards-in-network=1\
|
||||
--shard=0\
|
||||
--peer-exchange=true\
|
||||
--discv5-discovery=true\
|
||||
--discv5-udp-port=9005\
|
||||
--discv5-enr-auto-update=True\
|
||||
@ -124,10 +127,6 @@ exec /usr/bin/wakunode\
|
||||
--nat=extip:"${MY_EXT_IP}"\
|
||||
--store=true\
|
||||
--store-message-db-url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/postgres"\
|
||||
--rln-relay-eth-client-address="${RLN_RELAY_ETH_CLIENT_ADDRESS}"\
|
||||
--rln-relay-tree-path="/etc/rln_tree"\
|
||||
"${RLN_RELAY_CRED_PATH}"\
|
||||
"${RLN_RELAY_CRED_PASSWORD}"\
|
||||
${DNS_WSS_CMD}\
|
||||
${NODEKEY}\
|
||||
${STORE_RETENTION_POLICY}\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user