Skip to content

Instantly share code, notes, and snippets.

View dougg0k's full-sized avatar

Douglas Galdino dougg0k

  • Brazil
  • 01:36 (UTC -03:00)
View GitHub Profile
@dougg0k
dougg0k / netlify_cloudflare_cdn
Last active April 5, 2020 15:08
A way to use Cloudflare CDN with Netlify
1- Create Github account.
2- Create your private repo and push your files.
3- Login into Netlify with Github and add your repo there.
4- Given that you have your netlify.toml in your project already configured. Keep Post Process disabled.
5- Add your domain to Netlify, but do not configure the DNS nor Alias.
6- Create a Cloudflare account.
7- Add your domain there and configure the DNS to theirs where you bought your domain.
8- Configure the DNS adding CNAME @ with generated Netlify URL from your project in target and CNAME www with @ in target. Both with orange cloud activated (proxified).
9- SSL > Full.
10- Speed > Optimization, Activate Brotli and Rocket Loader and Minify all 3 options.