From b1ab0dcf51b6cc7de51543d0b89eeecc6ffe8326 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Fri, 19 Jul 2024 18:43:30 -0400 Subject: [PATCH] fix(scripts): Expose all wasmd ports publicly outside the container (#106) Signed-off-by: Thane Thomson --- scripts/run-node.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run-node.sh b/scripts/run-node.sh index 61c62bf..0e7680c 100755 --- a/scripts/run-node.sh +++ b/scripts/run-node.sh @@ -18,8 +18,11 @@ docker run --rm -it -p 26657:26657 -p 26656:26656 -p 1317:1317 -p 9090:9090 \ --name wasmd \ cosmwasm/wasmd:v0.44.0 \ /bin/sh -c "sed -i 's/enabled-unsafe-cors = false/enabled-unsafe-cors = true/g' /root/.wasmd/config/app.toml; + sed -i 's/address = \"tcp:\/\/localhost:1317\"/address = \"tcp:\/\/0.0.0.0:1317\"/g' /root/.wasmd/config/app.toml; + sed -i 's/address = \"localhost:909/address = \"0.0.0.0:909/g' /root/.wasmd/config/app.toml; sed -i 's/enable = false/enable = true/g' /root/.wasmd/config/app.toml; sed -i 's/rpc-max-body-bytes = 1000000$/rpc-max-body-bytes = 1000000000/g' /root/.wasmd/config/app.toml; + sed -i 's/laddr = \"tcp:\/\/127.0.0.1:26657\"/laddr = \"tcp:\/\/0.0.0.0:26657\"/g' /root/.wasmd/config/config.toml; sed -i 's/cors_allowed_origins = \[\]/cors_allowed_origins = \[\"*\"\]/g' /root/.wasmd/config/config.toml; sed -i 's/max_body_bytes = 1000000$/max_body_bytes = 1000000000/g' /root/.wasmd/config/config.toml; sed -i 's/max_tx_bytes = 1048576$/max_tx_bytes = 104857600/g' /root/.wasmd/config/config.toml;