From ddfa6e596af84e152dc6efe9473b21644bb3ed1c Mon Sep 17 00:00:00 2001 From: vdo Date: Mon, 6 Jun 2022 21:13:47 +0100 Subject: [PATCH] optional pruning --- .env | 3 ++- README.md | 11 ++++++++--- install | 17 ++++++++++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 7a8274f..0411fb5 100644 --- a/.env +++ b/.env @@ -10,7 +10,8 @@ MONEROD_TAG=latest MONEROD_RPC_PORT=18081 MONEROD_RESTRICTED_RPC_PORT=18089 MONEROD_P2P_PORT=18080 -MONEROD_EXTRA_PARAMS=--prune-blockchain +#MONEROD_EXTRA_PARAMS=--prune-blockchain +MONEROD_EXTRA_PARAMS= MONEROD_accessControlAllowOriginList=* #TOR_TAG=latest diff --git a/README.md b/README.md index 774b80d..e127210 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,10 @@ Check the [wiki](https://github.com/vdo/xmr.sh/wiki/FAQ) - [x] Grafana dashboard - [ ] Shellcheck via Github Actions - [ ] Installation documentation -- [ ] arm64 support for all images. +- [ ] arm64 support for all images - [ ] monerod-lws support -- [ ] monerod-proxy support. - +- [ ] monerod-proxy support for random node forwarding +- [ ] i2p service # Credits @@ -44,3 +44,8 @@ Check the [wiki](https://github.com/vdo/xmr.sh/wiki/FAQ) [@sethforprivacy](https://github.com/sethforprivacy) for providing and maintaining Monero Docker images. +# Donate XMR 🍕 + +86GwmtuKWtjJBWT8Srn4oqZHbP41k2kpG79xXKKgauJzCmZkFJ5ihwjVnRodVbVjAx64JeB7VyGbF6hEdwpcPcR7Go8x2YZ + + diff --git a/install b/install index 585605c..bb1751e 100755 --- a/install +++ b/install @@ -241,10 +241,25 @@ configure_tls_port() { fi } +configure_pruning() { + echo -e "${OkBullet}Configuring pruning..." + while true; do + read -r -e -p " Do you want to enable blockchain pruning? [y/n]: " yn + case $yn in + [Yy]*) + sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --prune-blockchain/g" .env + break + ;; + [Nn]*) break ;; + *) echo " Please answer yes or no." ;; + esac + done +} + configure_cors() { echo -e "${OkBullet}Configuring CORS..." while true; do - read -r -e -p " Do you want to enabe CORS headers so the node can be used in web apps? [y/n]: " yn + read -r -e -p " Do you want to enable CORS headers so the node can be used in web apps? [y/n]: " yn case $yn in [Yy]*) sed -i '/#!cors/s/# //g' docker-compose.yml