Apply custom settings to app.toml

This commit is contained in:
Simon Warta 2020-08-06 09:41:24 +02:00
parent be1dc1ed8d
commit 7ec4939194
2 changed files with 8 additions and 2 deletions

View File

@ -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"
)

View File

@ -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