Facebook Pixel

How do I set up Cloudflare for my domain?

Create a Cloudflare account, add your domain, Cloudflare scans existing DNS records and gives you nameservers, update nameservers at your registrar, configure DNS records in Cloudflare (proxied for CDN features), and set SSL to Full (strict) if you have Let's Encrypt on your origin.

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in Using Cloudflare for DNS and CDN Free Performance and Security for Node.js

DNS management, CDN (caches static assets globally), DDoS protection, free SSL certificate, firewall (block by IP/country), analytics, Page Rules (redirect, cache, secure URLs), and Brotli compression. The free plan is sufficient for most Node.js projects.

Proxied (orange cloud) routes traffic through Cloudflare, providing CDN caching, DDoS protection, SSL, and firewall. DNS only (gray cloud) just resolves the DNS, and traffic goes directly to your server without Cloudflare features.

Add set_real_ip_from directives in nginx.conf for all Cloudflare IP ranges, then set real_ip_header CF-Connecting-IP. Now $remote_addr and req.ip (with trust proxy) will return the real client IP instead of Cloudflare's IP.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0