diff --git a/scripts/simapp/start.sh b/scripts/simapp/start.sh index 6fef2b4d..9270cd6f 100755 --- a/scripts/simapp/start.sh +++ b/scripts/simapp/start.sh @@ -4,6 +4,8 @@ command -v shellcheck > /dev/null && shellcheck "$0" TENDERMINT_PORT_GUEST="26657" TENDERMINT_PORT_HOST="26657" +API_PORT_GUEST="1317" +API_PORT_HOST="1318" SCRIPT_DIR="$(realpath "$(dirname "$0")")" # shellcheck source=./env @@ -21,6 +23,7 @@ docker volume rm -f simapp_data docker run --rm \ --name "$CONTAINER_NAME" \ -p "$TENDERMINT_PORT_HOST":"$TENDERMINT_PORT_GUEST" \ + -p "$API_PORT_HOST":"$API_PORT_GUEST" \ --mount type=bind,source="$SCRIPT_DIR/template",target=/template \ --mount type=volume,source=simapp_data,target=/root \ "$REPOSITORY:$VERSION" \ diff --git a/scripts/simapp/template/.simapp/config/app.toml b/scripts/simapp/template/.simapp/config/app.toml index cff06fc3..66618dd4 100644 --- a/scripts/simapp/template/.simapp/config/app.toml +++ b/scripts/simapp/template/.simapp/config/app.toml @@ -78,7 +78,7 @@ global-labels = [ [api] # Enable defines if the API server should be enabled. -enable = false +enable = true # Swagger defines if swagger documentation should automatically be registered. swagger = false @@ -99,4 +99,4 @@ rpc-write-timeout = 0 rpc-max-body-bytes = 1000000 # EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk) -enabled-unsafe-cors = false +enabled-unsafe-cors = true