- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
3.9 KiB
3.9 KiB
Cloudflare Domain Setup Guide
Last Updated: 2024-12-19
Current Status
The domain sankofa.nexus is not currently in your Cloudflare account. You need to add it before DNS records can be created.
Option 1: Add Domain to Cloudflare (Recommended)
Steps
-
Log in to Cloudflare Dashboard
- Go to: https://dash.cloudflare.com
- Log in with:
pandoramannli@gmail.com
-
Add Domain
- Click "Add a Site" or "Add Site"
- Enter:
sankofa.nexus - Click "Add site"
-
Choose Plan
- Select a plan (Free plan is sufficient for DNS)
-
Update Nameservers
- Cloudflare will provide nameservers (e.g.,
ns1.cloudflare.com,ns2.cloudflare.com) - Update your domain registrar to use these nameservers
- Wait for DNS propagation (can take up to 24 hours, usually much faster)
- Cloudflare will provide nameservers (e.g.,
-
Verify Domain is Active
- Once nameservers are updated, Cloudflare will show the domain as "Active"
-
Get Zone ID
./scripts/get-cloudflare-info.shThis will automatically retrieve and add the Zone ID to
.env -
Create DNS Records
./scripts/setup-dns-records.sh
Option 2: Use Existing Domain
If you have another domain already in Cloudflare:
-
Check Available Domains
source .env curl -s -X GET "https://api.cloudflare.com/client/v4/zones" \ -H "X-Auth-Email: ${CLOUDFLARE_EMAIL}" \ -H "X-Auth-Key: ${CLOUDFLARE_API_KEY}" | \ jq -r '.result[] | "\(.name) - Zone ID: \(.id)"' -
Update Configuration
- Update
DOMAINin.envto use existing domain - Update all configuration files that reference
sankofa.nexus
- Update
Option 3: Use Subdomain
If you want to use a subdomain of an existing domain:
-
Identify Parent Domain
- Check available zones (see Option 2)
-
Create Subdomain Records
- Use the parent domain's Zone ID
- Create records like
proxmox1.parent-domain.com
-
Update Configuration
- Update
DOMAINin.env - Update FQDNs in configuration files
- Update
Verification
After adding the domain, verify it's accessible:
# Get Zone ID
./scripts/get-cloudflare-info.sh
# Check Zone ID in .env
grep ZONE_ID .env
# Create DNS records
./scripts/setup-dns-records.sh
DNS Records to be Created
Once the domain is added, the script will create:
For ml110-01 (192.168.11.10):
ml110-01.sankofa.nexus→ A record → 192.168.11.10ml110-01-api.sankofa.nexus→ CNAME → ml110-01.sankofa.nexusml110-01-metrics.sankofa.nexus→ CNAME → ml110-01.sankofa.nexus
For r630-01 (192.168.11.11):
r630-01.sankofa.nexus→ A record → 192.168.11.11r630-01-api.sankofa.nexus→ CNAME → r630-01.sankofa.nexusr630-01-metrics.sankofa.nexus→ CNAME → r630-01.sankofa.nexus
Troubleshooting
Domain Not Found
- Issue: Zone ID cannot be retrieved
- Solution: Add domain to Cloudflare account first
Nameservers Not Updated
- Issue: Domain shows as "Pending" in Cloudflare
- Solution: Update nameservers at your domain registrar
DNS Propagation Delay
- Issue: DNS records not resolving
- Solution: Wait for DNS propagation (usually 5-15 minutes, can take up to 24 hours)
API Authentication Errors
- Issue: 401 or 403 errors
- Solution: Verify credentials in
.envfile are correct
Next Steps
- Add Domain to Cloudflare (if not already added)
- Update Nameservers at domain registrar
- Wait for Activation (domain status becomes "Active")
- Run Scripts:
./scripts/get-cloudflare-info.sh ./scripts/setup-dns-records.sh - Verify DNS Resolution:
dig ml110-01.sankofa.nexus dig r630-01.sankofa.nexus