Update entrypoint.sh

This commit is contained in:
kant777 2024-01-12 00:58:21 -08:00 committed by GitHub
parent ac99290823
commit 8faf33c1ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ else
fi fi
# Obtain assigned container IP for p2p # Obtain assigned container IP for p2p
NODE_IP=$(hostname -i) NODE_IP=${NODE_IP:-$(hostname -i)}
if [ "$GETH_NODE_TYPE" = "bootnode" ]; then if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
echo "Starting bootnode" echo "Starting bootnode"
@ -56,11 +56,11 @@ if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
--http \ --http \
--http.corsdomain="*" \ --http.corsdomain="*" \
--http.vhosts="*" \ --http.vhosts="*" \
--http.addr=0.0.0.0 \ --http.addr="$NODE_IP" \
--http.port="$RPC_PORT" \ --http.port="$RPC_PORT" \
--http.api=web3,debug,eth,txpool,net,engine \ --http.api=web3,debug,eth,txpool,net,engine \
--ws \ --ws \
--ws.addr=0.0.0.0 \ --ws.addr="$NODE_IP" \
--ws.port="$WS_PORT" \ --ws.port="$WS_PORT" \
--ws.origins="*" \ --ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \ --ws.api=debug,eth,txpool,net,engine \
@ -71,10 +71,10 @@ if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
--networkid=$CHAIN_ID \ --networkid=$CHAIN_ID \
--nousb \ --nousb \
--metrics \ --metrics \
--metrics.addr=0.0.0.0 \ --metrics.addr="$NODE_IP" \
--metrics.port=6060 \ --metrics.port=6060 \
--pprof \ --pprof \
--pprof.addr=0.0.0.0 \ --pprof.addr="$NODE_IP" \
--pprof.port=60601 \ --pprof.port=60601 \
--nodekey $GETH_DATA_DIR/boot.key \ --nodekey $GETH_DATA_DIR/boot.key \
--netrestrict $NET_RESTRICT \ --netrestrict $NET_RESTRICT \
@ -96,7 +96,7 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then
--http \ --http \
--http.corsdomain="*" \ --http.corsdomain="*" \
--http.vhosts="*" \ --http.vhosts="*" \
--http.addr=0.0.0.0 \ --http.addr="$NODE_IP" \
--http.port="$RPC_PORT" \ --http.port="$RPC_PORT" \
--http.api=web3,debug,eth,txpool,net,engine \ --http.api=web3,debug,eth,txpool,net,engine \
--bootnodes $BOOTNODE_ENDPOINT \ --bootnodes $BOOTNODE_ENDPOINT \
@ -109,18 +109,18 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then
--nousb \ --nousb \
--netrestrict $NET_RESTRICT \ --netrestrict $NET_RESTRICT \
--metrics \ --metrics \
--metrics.addr=0.0.0.0 \ --metrics.addr="$NODE_IP" \
--metrics.port=6060 \ --metrics.port=6060 \
--pprof \ --pprof \
--pprof.addr=0.0.0.0 \ --pprof.addr="$NODE_IP" \
--pprof.port=60601 \ --pprof.port=60601 \
--ws \ --ws \
--ws.addr=0.0.0.0 \ --ws.addr="$NODE_IP" \
--ws.port="$WS_PORT" \ --ws.port="$WS_PORT" \
--ws.origins="*" \ --ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \ --ws.api=debug,eth,txpool,net,engine \
--rpc.allow-unprotected-txs \ --rpc.allow-unprotected-txs \
--authrpc.addr="0.0.0.0" \ --authrpc.addr="$NODE_IP" \
--authrpc.port="8551" \ --authrpc.port="8551" \
--authrpc.vhosts="*" \ --authrpc.vhosts="*" \
--txpool.accountqueue=512 \ --txpool.accountqueue=512 \
@ -140,25 +140,25 @@ elif [ "$GETH_NODE_TYPE" = "member" ]; then
--http \ --http \
--http.corsdomain="*" \ --http.corsdomain="*" \
--http.vhosts="*" \ --http.vhosts="*" \
--http.addr=0.0.0.0 \ --http.addr="$NODE_IP" \
--http.port="$RPC_PORT" \ --http.port="$RPC_PORT" \
--http.api=web3,debug,eth,txpool,net,engine \ --http.api=web3,debug,eth,txpool,net,engine \
--bootnodes $BOOTNODE_ENDPOINT \ --bootnodes $BOOTNODE_ENDPOINT \
--networkid=$CHAIN_ID \ --networkid=$CHAIN_ID \
--password="$GETH_DATA_DIR"/password \ --password="$GETH_DATA_DIR"/password \
--metrics \ --metrics \
--metrics.addr=0.0.0.0 \ --metrics.addr="$NODE_IP" \
--metrics.port=6060 \ --metrics.port=6060 \
--pprof \ --pprof \
--pprof.addr=0.0.0.0 \ --pprof.addr="$NODE_IP" \
--pprof.port=60601 \ --pprof.port=60601 \
--ws \ --ws \
--ws.addr=0.0.0.0 \ --ws.addr="$NODE_IP" \
--ws.port="$WS_PORT" \ --ws.port="$WS_PORT" \
--ws.origins="*" \ --ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \ --ws.api=debug,eth,txpool,net,engine \
--rpc.allow-unprotected-txs \ --rpc.allow-unprotected-txs \
--authrpc.addr="0.0.0.0" \ --authrpc.addr="$NODE_IP" \
--authrpc.port="8551" \ --authrpc.port="8551" \
--authrpc.vhosts="*" \ --authrpc.vhosts="*" \
--txpool.accountqueue=512 \ --txpool.accountqueue=512 \