# Cloudflare Integration

Use Cloudflare for DNS, CDN, and SSL termination in front of your GrackerAI portal.

## Quick Steps  
1. Add your domain to Cloudflare and update nameservers  
2. Create a CNAME record: `your-subdomain → portals.gracker.ai`  
3. In Cloudflare SSL settings, set encryption mode to **Full (Strict)**  
4. In GrackerAI → Portal Settings → Domains, add your subdomain  
5. Wait for verification (usually < 30 minutes)

## Recommended Cloudflare Settings  
- **Caching level:** Standard  
- **Browser cache TTL:** Respect existing headers  
- **Always Use HTTPS:** On  
- **HTTP/2 + HTTP/3:** On  
- **Minify:** HTML, CSS, JS all on  
- **Brotli:** On

## Page Rules  
Most portals don't need custom page rules. If you serve large media (videos, datasets), add a Page Rule with **Cache Level: Cache Everything** for those paths.
