GitHub Pages + Cloudflare: custom domain checklist

Sam Dutton
Mar 20 · 2 min read

Domain host

Set nameserver values for Cloudflare

GitHub settings for repo

From the settings page for your repo on GitHub, set the custom GitHub Pages


Add a CNAME file with your custom domain to the branch/directory for your GitHub Pages site

Cloudflare settings

Add A records to the Cloudflare DNS settings for your site
Set your site to always use HTTPS
Add a Page Rule to always use HTTPS
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade