# Cloudflare Configuration for Blockscout Explorer

**Date**: $(date)  
**Domain**: explorer.d-bis.org  
**Tunnel ID**: `10ab22da-8ea3-4e2e-a896-27ece2211a05`

---

## Quick Configuration Steps

### 1. DNS Record (Cloudflare Dashboard)

1. **Go to Cloudflare DNS**:
   - URL: https://dash.cloudflare.com/
   - Select domain: `d-bis.org`
   - Navigate to: **DNS** → **Records**

2. **Create CNAME Record**:
   ```
   Type: CNAME
   Name: explorer
   Target: 10ab22da-8ea3-4e2e-a896-27ece2211a05.cfargotunnel.com
   Proxy status: 🟠 Proxied (orange cloud) - REQUIRED
   TTL: Auto
   ```

3. **Click Save**

### 2. Tunnel Route (Cloudflare Zero Trust)

1. **Go to Cloudflare Zero Trust**:
   - URL: https://one.dash.cloudflare.com/
   - Navigate to: **Zero Trust** → **Networks** → **Tunnels**

2. **Select Your Tunnel**:
   - Find tunnel ID: `10ab22da-8ea3-4e2e-a896-27ece2211a05`
   - Click on the tunnel name

3. **Configure Public Hostname**:
   - Click **Configure** button
   - Click **Public Hostnames** tab
   - Click **Add a public hostname**

4. **Add Hostname**:
   ```
   Subdomain: explorer
   Domain: d-bis.org
   Service: http://192.168.11.140:80
   Type: HTTP
   ```

5. **Click Save hostname**

---

## Verification

### Wait for DNS Propagation (1-5 minutes)

Then test:

```bash
# Test DNS resolution
dig explorer.d-bis.org
nslookup explorer.d-bis.org

# Test HTTPS endpoint
curl https://explorer.d-bis.org/health

# Should return JSON response from Blockscout
```

---

## Configuration Summary

| Setting | Value |
|---------|-------|
| **Domain** | explorer.d-bis.org |
| **DNS Type** | CNAME |
| **DNS Target** | 10ab22da-8ea3-4e2e-a896-27ece2211a05.cfargotunnel.com |
| **Proxy Status** | 🟠 Proxied (required) |
| **Tunnel Service** | http://192.168.11.140:80 |
| **Tunnel Type** | HTTP |

---

**Status**: Ready for configuration  
**Next Step**: Follow steps 1 and 2 above in Cloudflare dashboards

