# Miracles In Motion - Cloudflare Configuration Complete ✅

**Date**: December 26, 2025  
**Domain**: mim4u.org  
**Status**: ✅ **CLOUDFLARE CONFIGURED**

---

## ✅ Configuration Completed

### Cloudflare Information
- **Domain**: mim4u.org
- **Zone ID**: 5dc79e6edf9b9cf353e3cca94f26f454
- **Account ID**: 52ad57a71671c5fc009edf0744658196

### Services Configured

1. **Nginx** ✅
   - Server name: `mim4u.org`, `www.mim4u.org`
   - API proxy configured
   - Configuration validated

2. **Environment Variables** ✅
   - Domain: `mim4u.org`
   - API URL: `https://mim4u.org/api`
   - Cloudflare IDs configured

3. **Cloudflare Tunnel** ✅
   - Configuration file: `/etc/cloudflared/config.yml`
   - Systemd service: `cloudflared-mim.service`
   - Ready for tunnel token

---

## 🚀 Next Step: Create Tunnel in Cloudflare Dashboard

### Step 1: Create Tunnel

1. Go to: https://one.dash.cloudflare.com
2. Navigate to: **Zero Trust** → **Networks** → **Tunnels**
3. Click: **Create a tunnel**
4. Select: **Cloudflared**
5. Name: `mim4u-tunnel`
6. Click: **Save tunnel**
7. Copy the **tunnel token**

### Step 2: Start Tunnel

Run the setup script with your tunnel token:

```bash
cd /home/intlc/projects/proxmox
./scripts/setup-cloudflare-tunnel-mim.sh <your-tunnel-token>
```

Or manually:

```bash
ssh root@192.168.11.12
pct exec 7810 -- bash
export TUNNEL_TOKEN="your-token-here"
cat > /etc/systemd/system/cloudflared-mim.service <<EOF
[Unit]
Description=Cloudflare Tunnel for Miracles In Motion
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/cloudflared tunnel --config /etc/cloudflared/config.yml run
Restart=always
RestartSec=10
Environment="TUNNEL_TOKEN=${TUNNEL_TOKEN}"

[Install]
WantedBy=multi-user.target
