How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: FREE, secure and performant by default
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control
and E-Tag
headers, etc.), minification, etc.
CNAME
record to point <domain>.<tld>
to <user>.github.io
. (Refer to the GitHub docs for more information.)CNAME
containing the domain name (e.g., aframe.io
).gh-pages
or master
of your repo; or you can use the master
branch of a repo named <org>.github.io
- example: https://github.com/aframevr/aframevr.github.io/ automatically gets published to https://aframevr.github.io/, which redirects to https://aframe.io/)