diff --git a/docs/nodes/mainnet.md b/docs/nodes/mainnet.md index 2642bef..c3a2176 100644 --- a/docs/nodes/mainnet.md +++ b/docs/nodes/mainnet.md @@ -60,7 +60,7 @@ DISK_CACHE_SIZE_GB=100 DISK_CACHE_PATH=./cache # Network ports -HTTP_PORT=80 +NODE_LISTEN_PORT=80 HTTPS_PORT=443 # Home network auto port forwarding (disable on VPS/servers) @@ -122,9 +122,10 @@ Wants=network-online.target [Service] WorkingDirectory=/opt/pipe -ExecStart=/bin/bash -c 'source /opt/pipe/.env && /opt/pipe/pop' +EnvironmentFile=/opt/pipe/.env +ExecStart=/opt/pipe/pop Restart=always -RestartSec=5 +RestartSec=3 StandardOutput=journal StandardError=journal LimitNOFILE=65535 @@ -139,11 +140,15 @@ sudo systemctl daemon-reload sudo systemctl enable pipe sudo systemctl start pipe -sudo journalctl -u pipe -f ``` > 💡 **Tip:** Systemd ensures auto-restart on crash and starts automatically at boot. +Logs + +```bash +journalctl -u pipe -f +``` --- @@ -168,17 +173,17 @@ cd /opt/pipe ./pop earnings ``` -Prometheus metrics: - -```bash -curl http://localhost:9090/metrics -``` +### **Optional: Prometheus Metrics** -Logs ( If use Systemd Service): +The node exposes an optional Prometheus-compatible endpoint on **port 9090**. ```bash -journalctl -u pipe -f +curl http://localhost:9090/metrics ``` +> 💡 **Note:** +> This endpoint is **optional** and **not required** for your node to operate. +> It is intended only for **local monitoring** or integration with observability tools such as **Prometheus**, **Grafana**, or **Telegraf**. +> ---