102 lines
2.9 KiB
Markdown
102 lines
2.9 KiB
Markdown
|
|
# Cloudflare Configuration Complete - Status Report
|
||
|
|
|
||
|
|
**Date**: January 27, 2025
|
||
|
|
**Status**: ✅ **DNS & TUNNEL ROUTE CONFIGURED** | ⏳ **TUNNEL SERVICE INSTALLATION PENDING**
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ✅ Completed via API
|
||
|
|
|
||
|
|
### 1. DNS Record Configuration ✅
|
||
|
|
- **Domain**: explorer.d-bis.org
|
||
|
|
- **Type**: CNAME
|
||
|
|
- **Target**: b02fe1fe-cb7d-484e-909b-7cc41298ebe8.cfargotunnel.com
|
||
|
|
- **Proxy Status**: 🟠 Proxied (orange cloud)
|
||
|
|
- **Status**: ✅ Configured via Cloudflare API
|
||
|
|
|
||
|
|
### 2. Tunnel Route Configuration ✅
|
||
|
|
- **Hostname**: explorer.d-bis.org
|
||
|
|
- **Service**: http://192.168.11.140:80
|
||
|
|
- **Tunnel ID**: b02fe1fe-cb7d-909b-7cc41298ebe8
|
||
|
|
- **Status**: ✅ Configured via Cloudflare API
|
||
|
|
|
||
|
|
### 3. SSL/TLS Configuration ✅
|
||
|
|
- **Status**: Automatic (Cloudflare Universal SSL)
|
||
|
|
- **Note**: SSL is automatically enabled when DNS is proxied
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ⏳ Remaining: Tunnel Service Installation
|
||
|
|
|
||
|
|
The Cloudflare tunnel service needs to be installed in the container to establish the connection.
|
||
|
|
|
||
|
|
### Installation Command (Run on pve2)
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Install tunnel service with token
|
||
|
|
pct exec 5000 -- cloudflared service install eyJhIjoiNTJhZDU3YTcxNjcxYzVmYzAwOWVkZjA3NDQ2NTgxOTYiLCJ0IjoiYjAyZmUxZmUtY2I3ZC00ODRlLTkwOWItN2NjNDEyOThlYmU4IiwicyI6Ik5HTmtOV0kwWXpNdFpUVmxaUzAwTVRFMkxXRXdNMk10WlRJNU1ETTFaRFF4TURBMiJ9
|
||
|
|
|
||
|
|
# Start service
|
||
|
|
pct exec 5000 -- systemctl start cloudflared
|
||
|
|
|
||
|
|
# Enable on boot
|
||
|
|
pct exec 5000 -- systemctl enable cloudflared
|
||
|
|
|
||
|
|
# Verify
|
||
|
|
pct exec 5000 -- systemctl status cloudflared
|
||
|
|
pct exec 5000 -- cloudflared tunnel list
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📊 Current Status
|
||
|
|
|
||
|
|
| Component | Status | Details |
|
||
|
|
|-----------|--------|---------|
|
||
|
|
| **DNS Record** | ✅ Configured | CNAME → tunnel (🟠 Proxied) |
|
||
|
|
| **Tunnel Route** | ✅ Configured | explorer.d-bis.org → 192.168.11.140:80 |
|
||
|
|
| **SSL/TLS** | ✅ Automatic | Cloudflare Universal SSL |
|
||
|
|
| **Tunnel Service** | ⏳ Pending | Needs installation in container |
|
||
|
|
| **Public URL** | ⏳ Waiting | HTTP 530 (tunnel not connected yet) |
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ✅ After Tunnel Installation
|
||
|
|
|
||
|
|
Once the tunnel service is installed and running:
|
||
|
|
|
||
|
|
1. **Wait 1-2 minutes** for tunnel to connect
|
||
|
|
2. **Test public URL**: `curl https://explorer.d-bis.org/api/v2/stats`
|
||
|
|
3. **Expected**: HTTP 200 with JSON response
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🔧 Scripts Created
|
||
|
|
|
||
|
|
- ✅ `scripts/configure-cloudflare-dns-ssl-api.sh` - DNS & tunnel route via API
|
||
|
|
- ✅ `scripts/install-tunnel-and-verify.sh` - Tunnel service installation
|
||
|
|
- ✅ `scripts/configure-cloudflare-explorer-complete-auto.sh` - Complete automation
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📋 Summary
|
||
|
|
|
||
|
|
**Completed**:
|
||
|
|
- ✅ DNS record configured via API
|
||
|
|
- ✅ Tunnel route configured via API
|
||
|
|
- ✅ SSL/TLS automatic
|
||
|
|
|
||
|
|
**Next Step**:
|
||
|
|
- ⏳ Install tunnel service in container (run command above on pve2)
|
||
|
|
|
||
|
|
**After Installation**:
|
||
|
|
- Wait 1-2 minutes
|
||
|
|
- Test: `curl https://explorer.d-bis.org/api/v2/stats`
|
||
|
|
- Should return HTTP 200 with network stats
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Last Updated**: January 27, 2025
|
||
|
|
**Status**: ✅ **DNS & ROUTE CONFIGURED** | ⏳ **AWAITING TUNNEL SERVICE INSTALLATION**
|
||
|
|
|