Harden cors_allowed_origins search/replace pattern

This commit is contained in:
Simon Warta 2020-08-18 19:07:21 +02:00
parent 3cd9b5cc27
commit f82a91c0f8
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ function inline_jq() {
# Custom settings in config.toml
sed -i "" \
-e 's/^cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' \
-e 's/^cors_allowed_origins =.*$/cors_allowed_origins = ["*"]/' \
-e 's/^timeout_propose =.*$/timeout_propose = "300ms"/' \
-e 's/^timeout_propose_delta =.*$/timeout_propose_delta = "100ms"/' \
-e 's/^timeout_prevote =.*$/timeout_prevote = "300ms"/' \

View File

@ -26,7 +26,7 @@ docker run --rm \
# make sure we allow cors origins, only possible by modifying the config file
# https://github.com/tendermint/tendermint/issues/3216
sed -ie 's/^cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' "${TMP_DIR}/config/config.toml"
sed -ie 's/^cors_allowed_origins =.*$/cors_allowed_origins = ["*"]/' "${TMP_DIR}/config/config.toml"
# must enable tx index for search and subscribe
docker run --rm \