This week I have been moving all my published sites to Github Pages. First of all, now I am able to stop my $5 Digital Ocean droplet. I used it for other services that required backend, but now it was only an Nginx serving multiple sites.
Once a site is published on Github Pages, we can move on and get the benefits of having a CDN. Cloudflare gives you a free SSL certificate as well as speed (minify, compression, etc.) and caching. This will give you a lot of Google’s PageSpeed Insights points.
- Create a Github repo and enable Github Pages
- Enable a custom domain
- Go to your domain provider and change the DNS to point to the ones from Cloudflare: edna.ns.cloudflare.com and noel.ns.cloudflare.com
- Setup your Cloudflare account and include four A records, pointing to Github.
And there you go. Fast and free hosting.