Ativar proxy laranja em todos os subdomínios, Full Strict SSL, Page Rules básicas e proteção DDoS automática. Em 10 minutos seus apps ficam blindados pela Cloudflare.
Nos módulos anteriores você criou DNS records DNS only (nuvem cinza). Isso foi proposital — o Let's Encrypt precisa alcançar a origem direto pra emitir certificado. Agora que todos os apps têm SSL funcional (Traefik EasyPanel + Caddy Brain), ligamos o proxy Cloudflare pra ganhar: CDN, DDoS protection, cache, WAF básico.
Cloudflare DNS → clica no ícone nuvem cinza pra virar laranja em cada record:
master7.ghostlab77.com.br → laranjaops7.ghostlab77.com.br → laranjan8n.ghostlab77.com.br → laranjachat.ghostlab77.com.br → laranjaollama.ghostlab77.com.br → laranja (opcional — pode deixar DNS-only se não quer API pública)brain.ghostlab77.com.br → laranjaCloudflare → SSL/TLS → Overview → escolhe Full (strict).
SSL/TLS → Edge Certificates:
Cloudflare → Rules → Page Rules:
# Rule 1: forçar HTTPS no root URL: http://ghostlab77.com.br/* Setting: Always Use HTTPS # Rule 2: cache agressivo em assets estáticos URL: *.ghostlab77.com.br/assets/* Settings: - Cache Level: Cache Everything - Edge Cache TTL: 1 month # Rule 3: bypass cache no n8n API URL: n8n.ghostlab77.com.br/rest/* Setting: Cache Level: Bypass
# Browser local: curl -sI https://master7.ghostlab77.com.br | head -5 # Deve retornar: # HTTP/2 200 # server: cloudflare <-- agora via CF, não mais Caddy direto # cf-cache-status: HIT (ou DYNAMIC) # SSL Labs test online: # https://www.ssllabs.com/ssltest/analyze.html?d=master7.ghostlab77.com.br # Target: grade A ou A+
Módulo 08 — Backup Strategy: R2 Cloudflare + rclone + cron + restore drill.