Cloudflare DNS and CDN Setup
Add Cloudflare to your site. DNS management, CDN, DDoS protection and SSL.
Setup Steps
1. Create a free account at https://cloudflare.com
2. Click 'Add a Site' and enter your domain name
3. Select the Free plan
4. Update the nameservers at your domain registrar with Cloudflare's:
ns1.cloudflare.com
ns2.cloudflare.com5. Wait for DNS propagation (usually 1-24 hours)
6. Configure DNS records:
- A record: @ -> server_ip (Proxied)
- CNAME: www -> mysite.com (Proxied)
7. SSL/TLS settings:
- Encryption mode: Full (Strict)
- Always Use HTTPS: On
- Minimum TLS Version: 1.2
8. Performance settings:
- Auto Minify: JavaScript, CSS, HTML
- Brotli: On
9. Security settings:
- Security Level: Medium
- Bot Fight Mode: On
10. Page Rules (important rules):
*.mysite.com/* -> Always Use HTTPS
mysite.com/api/* -> Cache Level: BypassRelated Guides
Git and GitHub Setup
Install Git version control system and manage projects with GitHub.
VS Code Setup and Extensions
Install Visual Studio Code editor and enhance it with developer extensions.
Node.js App Management with PM2
Manage your Node.js applications in production with PM2 process manager.
GitHub Actions CI/CD Setup
Create an automated test, build and deploy pipeline with GitHub Actions.