From 25c9b56f5884ee005edb1bb23b4608d19aa8785e Mon Sep 17 00:00:00 2001 From: "madara.bit" <31858202+whoopsme1337@users.noreply.github.com> Date: Fri, 10 Oct 2025 22:09:50 +0700 Subject: [PATCH 1/4] Create auto.sh --- docs/nodes/install/auto.sh | 103 +++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 docs/nodes/install/auto.sh diff --git a/docs/nodes/install/auto.sh b/docs/nodes/install/auto.sh new file mode 100644 index 0000000..1c58160 --- /dev/null +++ b/docs/nodes/install/auto.sh @@ -0,0 +1,103 @@ +#!/bin/bash + +# ======================================== +# Interactive setup for Pipe Network Node +# ======================================== + +echo "========================================" +echo " Pipe Network POP Node Installation" +echo "========================================" +echo "" + +# ---- Collect user input ---- +read -p "Enter your Solana wallet address: " SOLANA_WALLET +read -p "Enter your node name: " NODE_NAME +read -p "Enter your contact email: " NODE_EMAIL +read -p "Enter your node location (e.g. Jakarta, Indonesia): " NODE_LOCATION + +INSTALL_DIR="/opt/pipe" +SERVICE_NAME="pipe-node" + +# ---- Create installation directory ---- +sudo mkdir -p $INSTALL_DIR +sudo chown $USER:$USER $INSTALL_DIR +cd $INSTALL_DIR + +# ---- Download latest binary ---- +echo "" +echo "Downloading latest PipeCDN binary..." +curl -L https://pipe.network/p1-cdn/releases/latest/download/pop -o pop +chmod +x pop + +# ---- Create .env file ---- +echo "" +echo "Creating .env configuration file..." +cat < .env +# Wallet for earnings +NODE_SOLANA_PUBLIC_KEY=$SOLANA_WALLET + +# Node identity +NODE_NAME=$NODE_NAME +NODE_EMAIL=$NODE_EMAIL +NODE_LOCATION=$NODE_LOCATION + +# Cache configuration (optimized for VPS 24GB RAM / 400GB SSD) +MEMORY_CACHE_SIZE_MB=16384 # 16 GB +DISK_CACHE_SIZE_GB=350 # 350 GB +DISK_CACHE_PATH=./cache + +# Network ports +HTTP_PORT=80 +HTTPS_PORT=443 + +# Disable UPnP for VPS +UPNP_ENABLED=false + +# Worker threads +TOKIO_WORKER_THREADS=16 +EOF + +# ---- Create systemd service ---- +echo "" +echo "Creating systemd service..." +SERVICE_FILE="/etc/systemd/system/$SERVICE_NAME.service" +sudo bash -c "cat < $SERVICE_FILE +[Unit] +Description=Pipe POP Node +After=network.target + +[Service] +Type=simple +WorkingDirectory=$INSTALL_DIR +ExecStart=$INSTALL_DIR/pop +EnvironmentFile=$INSTALL_DIR/.env +Restart=always +RestartSec=10 +User=$USER + +[Install] +WantedBy=multi-user.target +EOF" + +# ---- Enable and start service ---- +echo "" +echo "Enabling and starting Pipe Node service..." +sudo systemctl daemon-reload +sudo systemctl enable $SERVICE_NAME +sudo systemctl start $SERVICE_NAME + +# ---- Final info ---- +echo "" +echo "========================================" +echo "✅ PipeCDN node installation completed!" +echo "----------------------------------------" +echo "Service name: $SERVICE_NAME" +echo "Wallet: $SOLANA_WALLET" +echo "Node name: $NODE_NAME" +echo "" +echo "To check node status, run:" +echo " sudo systemctl status $SERVICE_NAME" +echo "" +echo "To view logs in real-time, run:" +echo " journalctl -u $SERVICE_NAME -f" +echo "========================================" From 016c7370336c6fe75b9a12103494ac67f7d05d9c Mon Sep 17 00:00:00 2001 From: "madara.bit" <31858202+whoopsme1337@users.noreply.github.com> Date: Fri, 10 Oct 2025 22:18:17 +0700 Subject: [PATCH 2/4] Create setup.md --- docs/nodes/install/setup.md | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/nodes/install/setup.md diff --git a/docs/nodes/install/setup.md b/docs/nodes/install/setup.md new file mode 100644 index 0000000..4c5b2d3 --- /dev/null +++ b/docs/nodes/install/setup.md @@ -0,0 +1,39 @@ +## Auto Installations + +### Features +- ✅ One-command installation of the Pipe POP Node +- 🔧 Automatically generates a .env configuration file +- 🔥 Opens required firewall ports (80 & 443) +- 🧱 Runs as a persistent systemd service +- 💾 Built-in cache management for improved performance + +## 🛠️ Usage + +**Download the setup script to your server:** +```bash +bash <(curl -sSL https://raw.githubusercontent.com/pipenetwork/docs/main/docs/nodes/install/mainnet.sh) +``` +## Monitoring +**View node status and earnings:** +```bash +pop status +pop earnings +``` +**Prometheus metrics:** +```bash +curl http://localhost:9090/metrics +``` +**Logs ( If use Systemd Service):** +```bash +sudo journalctl -u pipe-node -f +``` + +## Upgrade Node +```bash +systemctl stop pipe-node +cd /opt/pipe +rm -f pop +curl -L https://pipe.network/p1-cdn/releases/latest/download/pop -o pop +chmod +x pop +systemctl start pipe-node +``` From a9574d682ae1bcdda2b72f7b20e036c8a106ed37 Mon Sep 17 00:00:00 2001 From: "madara.bit" <31858202+whoopsme1337@users.noreply.github.com> Date: Fri, 10 Oct 2025 22:18:49 +0700 Subject: [PATCH 3/4] Rename auto.sh to mainnet.sh --- docs/nodes/install/{auto.sh => mainnet.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/nodes/install/{auto.sh => mainnet.sh} (100%) diff --git a/docs/nodes/install/auto.sh b/docs/nodes/install/mainnet.sh similarity index 100% rename from docs/nodes/install/auto.sh rename to docs/nodes/install/mainnet.sh From 5175d2af7d637833ab818a9773ad9dc8394f8096 Mon Sep 17 00:00:00 2001 From: "madara.bit" <31858202+whoopsme1337@users.noreply.github.com> Date: Fri, 10 Oct 2025 22:20:03 +0700 Subject: [PATCH 4/4] Update setup.md --- docs/nodes/install/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/nodes/install/setup.md b/docs/nodes/install/setup.md index 4c5b2d3..ba71607 100644 --- a/docs/nodes/install/setup.md +++ b/docs/nodes/install/setup.md @@ -16,8 +16,8 @@ bash <(curl -sSL https://raw.githubusercontent.com/pipenetwork/docs/main/docs/no ## Monitoring **View node status and earnings:** ```bash -pop status -pop earnings +./pop status +./pop earnings ``` **Prometheus metrics:** ```bash