# Install Cloudflare Tunnel - Run These Commands

**Container**: VMID 5000 on pve2 node  
**Tunnel Token**: Provided

---

## 🚀 Installation Commands

**Run these commands on pve2 node (or via SSH to Proxmox host):**

```bash
# SSH to Proxmox host first
ssh root@192.168.11.10

# Then run these commands:

# 1. Install cloudflared service with token
pct exec 5000 -- cloudflared service install eyJhIjoiNTJhZDU3YTcxNjcxYzVmYzAwOWVkZjA3NDQ2NTgxOTYiLCJ0IjoiYjAyZmUxZmUtY2I3ZC00ODRlLTkwOWItN2NjNDEyOThlYmU4IiwicyI6Ik5HTmtOV0kwWXpNdFpUVmxaUzAwTVRFMkxXRXdNMk10WlRJNU1ETTFaRFF4TURBMiJ9

# 2. Start the service
pct exec 5000 -- systemctl start cloudflared

# 3. Enable on boot
pct exec 5000 -- systemctl enable cloudflared

# 4. Check status
pct exec 5000 -- systemctl status cloudflared

# 5. Get tunnel ID
pct exec 5000 -- cloudflared tunnel list
```

---

## ✅ After Installation

1. **Get Tunnel ID** from the `cloudflared tunnel list` output
2. **Configure DNS** in Cloudflare dashboard:
   - CNAME: `explorer` → `<tunnel-id>.cfargotunnel.com` (🟠 Proxied)
3. **Configure Tunnel Route** in Cloudflare Zero Trust:
   - `explorer.d-bis.org` → `http://192.168.11.140:80`
4. **Wait 1-5 minutes** for DNS propagation
5. **Test**: `curl https://explorer.d-bis.org/api/v2/stats`

---

**Run the commands above to complete the installation!**

