read

SSL/HTTPS is now almost mandatory.

Good news is, we can easily setup SSL with Cloudflare, and it’s free!

Requirements

Make sure you already have a website hosted on Github Pages, and serving via your own domain name.

If not, get your website running first.

Then register a Cloudflare account.

Setup on Cloudflare

  1. In Cloudflare > “Add Site” > Enter your website domain name

  2. Cloudflare automatically copy your DNS records, but you should double check them

  3. In your domain registrar, change the nameservers to that provided by Cloudflare – eg. mia.ns.Cloudflare.com and yichun.ns.Cloudflare.com

That’s it!

The Thing About Page Rules

Cloudflare’s Page Rules is like nginx configuration. You can rewrite URLs, configure cache settings, redirects, etc.

For simple redirection/forwarding, you need 1 page rule for every redirect.

Cloudflare free plan provides only 3 page rules.

Argh, that’s the caveat of being free.


Image

@samwize

¯\_(ツ)_/¯

Back to Home