diff --git a/scripts/simapp/generate_template.sh b/scripts/simapp/generate_template.sh index 55054707..2997bedf 100755 --- a/scripts/simapp/generate_template.sh +++ b/scripts/simapp/generate_template.sh @@ -60,4 +60,10 @@ function inline_jq() { -e 's/^timeout_precommit_delta =.*$/timeout_precommit_delta = "100ms"/' \ -e 's/^timeout_commit =.*$/timeout_commit = "1s"/' \ "template/.simapp/config/config.toml" + + # Custom settings app.toml + sed -i "" \ + -e 's/^enable =.*$/enable = true/' \ + -e 's/^enabled-unsafe-cors =.*$/enabled-unsafe-cors = true/' \ + "template/.simapp/config/app.toml" ) 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