diff --git a/iota-wasp/README.md b/iota-wasp/README.md index 007829cb..371b4f67 100644 --- a/iota-wasp/README.md +++ b/iota-wasp/README.md @@ -26,6 +26,7 @@ WASP_HOST=node.your-domain.com # WASP_PEERING_PORT=4000 # WASP_DATA_DIR= # WASP_IDENTITY_PRIVATE_KEY= +# WASP_PRUNING_MIN_STATES_TO_KEEP=10000 # DASHBOARD_USERNAME=admin DASHBOARD_PASSWORD= @@ -52,6 +53,7 @@ DASHBOARD_SALT= | WASP_PEERING_PORT | | 4000 | Peering port | | WASP_DATA_DIR | | .data | Directory containing configuration, database etc. | | WASP_IDENTITY_PRIVATE_KEY | | | Private key used to derive the node identity | +| WASP_PRUNING_MIN_STATES_TO_KEEP | | 10000 | Minimum number of states to keep in the database. If the number of states exceeds this value, the oldest states are pruned. | | DASHBOARD_USERNAME | | wasp | Username to access dashboard | | DASHBOARD_PASSWORD | x | | Password hash (can be generated with `docker run --rm -it iotaledger/hornet:2.0-rc tool pwd-hash` or non-interactively with `docker run --rm iotaledger/hornet:2.0-rc tool pwd-hash --json --password `) | | DASHBOARD_SALT | x | | Password salt (can be generated with `docker run --rm -it iotaledger/hornet:2.0-rc tool pwd-hash` or non-interactively with `docker run --rm iotaledger/hornet:2.0-rc tool pwd-hash --json --password `) | diff --git a/iota-wasp/prepare_docker.sh b/iota-wasp/prepare_docker.sh index 50904772..fa81ac0f 100755 --- a/iota-wasp/prepare_docker.sh +++ b/iota-wasp/prepare_docker.sh @@ -39,6 +39,8 @@ set_config "${configPath}" ".webapi.auth.basic.username" "\"${DASHBOARD_USERN set_config "${configPath}" ".prometheus.bindAddress" "\"0.0.0.0:9312\"" set_config "${configPath}" ".db.debugSkipHealthCheck" "false" +set_config_if_present_in_env "${configPath}" "WASP_PRUNING_MIN_STATES_TO_KEEP" ".stateManager.pruningMinStatesToKeep" + echo "Configure users defined in .env..." echo "{}" > "${usersConfigPath}" set_config "${usersConfigPath}" ".users.users[\"${DASHBOARD_USERNAME:-wasp}\"].passwordHash" "\"${DASHBOARD_PASSWORD}\"" "secret" diff --git a/shimmer-wasp/README.md b/shimmer-wasp/README.md index 44e4c5e0..f40366b0 100644 --- a/shimmer-wasp/README.md +++ b/shimmer-wasp/README.md @@ -27,13 +27,13 @@ WASP_HOST=node.your-domain.com # WASP_PEERING_PORT=4000 # WASP_DATA_DIR= # WASP_IDENTITY_PRIVATE_KEY= +# WASP_PRUNING_MIN_STATES_TO_KEEP=10000 # DASHBOARD_USERNAME=admin DASHBOARD_PASSWORD= DASHBOARD_SALT= # WASP_WEBAPI_AUTH_SCHEME=jwt # WASP_JWT_DURATION=24h -# WASP_PRUNING_MIN_STATES_TO_KEEP=10000 # WASP_TRUSTED_NODE_0_NETID=trusted.node:4000 # WASP_TRUSTED_NODE_0_PUBKEY=