- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
115 lines
2.5 KiB
Markdown
115 lines
2.5 KiB
Markdown
# Cloudflared Tunnel Update - Complete
|
|
|
|
**Date**: 2025-01-27
|
|
**Status**: ✅ **SUCCESSFULLY UPDATED**
|
|
|
|
---
|
|
|
|
## ✅ What Was Updated
|
|
|
|
### Cloudflare Tunnel Routing
|
|
|
|
Updated via Cloudflare API to route public endpoints to VMID 2502:
|
|
|
|
**Public Endpoints** (NO JWT authentication):
|
|
- `rpc-http-pub.d-bis.org` → `https://192.168.11.252:443` (VMID 2502) ✅
|
|
- `rpc-ws-pub.d-bis.org` → `https://192.168.11.252:443` (VMID 2502) ✅
|
|
|
|
**Private Endpoints** (JWT authentication required):
|
|
- `rpc-http-prv.d-bis.org` → `https://192.168.11.251:443` (VMID 2501)
|
|
- `rpc-ws-prv.d-bis.org` → `https://192.168.11.251:443` (VMID 2501)
|
|
|
|
---
|
|
|
|
## ✅ Update Results
|
|
|
|
**Script Output**:
|
|
```
|
|
✓ Tunnel routes configured successfully
|
|
✓ DNS records updated
|
|
```
|
|
|
|
**Configuration Updated**:
|
|
- Cloudflare Tunnel ingress rules updated via API
|
|
- DNS records verified/updated
|
|
- Routing now points to correct VMIDs
|
|
|
|
---
|
|
|
|
## 📋 Final Architecture
|
|
|
|
```
|
|
Internet
|
|
↓
|
|
Cloudflare DNS/SSL (rpc-http-pub.d-bis.org)
|
|
↓
|
|
Cloudflare Tunnel (encrypted)
|
|
↓
|
|
VMID 2502:192.168.11.252:443 (Nginx - NO JWT)
|
|
↓
|
|
Besu RPC (127.0.0.1:8545)
|
|
↓
|
|
Response: {"jsonrpc":"2.0","id":1,"result":"0x8a"}
|
|
```
|
|
|
|
---
|
|
|
|
## ✅ Verification
|
|
|
|
### Test Public Endpoint
|
|
|
|
```bash
|
|
curl -X POST https://rpc-http-pub.d-bis.org \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
|
|
```
|
|
|
|
**Expected Response**: `{"jsonrpc":"2.0","id":1,"result":"0x8a"}`
|
|
|
|
### Test MetaMask Connection
|
|
|
|
1. **Remove existing network** in MetaMask (if previously added)
|
|
2. **Add network manually**:
|
|
- Network Name: `Defi Oracle Meta Mainnet`
|
|
- RPC URL: `https://rpc-http-pub.d-bis.org`
|
|
- Chain ID: `138`
|
|
- Currency Symbol: `ETH`
|
|
- Block Explorer URL: `https://explorer.d-bis.org` (optional)
|
|
3. **Save** and verify connection works
|
|
|
|
---
|
|
|
|
## 📝 Configuration Summary
|
|
|
|
### VMID 2502 (Public RPC Node)
|
|
|
|
- ✅ Nginx configured for public endpoints
|
|
- ✅ No JWT authentication required
|
|
- ✅ Besu running and responding
|
|
- ✅ Cloudflared routing configured
|
|
|
|
### Cloudflare Tunnel
|
|
|
|
- ✅ Public endpoints route to VMID 2502
|
|
- ✅ Private endpoints route to VMID 2501
|
|
- ✅ DNS records updated
|
|
- ✅ Tunnel configuration applied
|
|
|
|
---
|
|
|
|
## 🎉 Summary
|
|
|
|
All fixes complete:
|
|
1. ✅ Nginx configured on VMID 2502 (public endpoints, no JWT)
|
|
2. ✅ Besu configuration fixed and running
|
|
3. ✅ Cloudflared tunnel routing updated to VMID 2502
|
|
4. ✅ DNS records verified
|
|
|
|
**MetaMask should now be able to connect successfully!** 🎉
|
|
|
|
---
|
|
|
|
**Last Updated**: 2025-01-27
|
|
**Status**: ✅ Complete
|
|
|