Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions docs/nodes/mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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
```

---

Expand All @@ -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**.
>

---

Expand Down