Harden cors_allowed_origins search/replace pattern
This commit is contained in:
parent
3cd9b5cc27
commit
f82a91c0f8
@ -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"/' \
|
||||
|
||||
@ -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 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user