From 7ec4939194a08bdfbc2e687f9040346388a58e24 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 6 Aug 2020 09:41:24 +0200 Subject: [PATCH] Apply custom settings to app.toml --- scripts/simapp/generate_template.sh | 6 ++++++ scripts/simapp/template/.simapp/config/app.toml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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