mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-11 02:14:57 -04:00
optional pruning
This commit is contained in:
parent
b5badfc96a
commit
ddfa6e596a
3 changed files with 26 additions and 5 deletions
3
.env
3
.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
|
||||
|
|
11
README.md
11
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
|
||||
|
||||
|
||||
|
|
17
install
17
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue