Set up custom domain
- Get a domain online. I bought it on GoDaddy.
- In your domain registrar’s admin panel, add an
Arecord with host@pointing to192.30.252.153, which is the IP address of Github. - Add another
CNAMErecord with hostwwwpointing tousername.github.io. - In your github page root directory, add a file
CNAME, fill in your custom domain likeexample.com. Push your changes. - Test settings with
dig example.com.
Add HTTPS support
CloudFlare provides a free HTTPS support. The steps are as follows.
- Sign up for CloudFlare and create a profile for your domain
- As instructed by CloudFlare, in your original domain registrar’s admin panel, point the nameservers to CloudFlare’s.
- Test settings with
dig example.com. - In crypto option, change SSL to Flexible; enable “Always use HTTPS” option.
- All set up! Just wait for several hours to get certificate issued.
