cd $HOME/.local/share/eosio/nodeos/config
cat <<EOF >> $HOME/.local/share/eosio/nodeos/config/config.ini
http-server-address = 0.0.0.0:8888
p2p-listen-endpoint = 0.0.0.0:9876
abi-serializer-max-time-ms = 3000
max-transaction-time = 150000
reversible-blocks-db-size-mb = 1024
p2p-max-nodes-per-host = 1
connection-cleanup-period = 30
http-validate-host = false
access-control-allow-origin = *
access-control-allow-headers = *
access-control-allow-credentials = false
verbose-http-errors = true
eos-vm-oc-compile-threads=2
trace-history-debug-mode = true
http-max-response-time-ms = 500
plugin = eosio::producer_plugin
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::net_plugin
plugin = eosio::state_history_plugin
state-history-endpoint = 0.0.0.0:8887
chain-state-db-size-mb = $CHAIN_STATE_SIZE
curl $P2P_FILE > p2p-config.ini
cat p2p-config.ini | grep "p2p-peer-address" >> $HOME/.local/share/eosio/nodeos/config/config.ini