View on GitHub

Deep Kapadia

Dad, husband, software engineer, sports enthusiast

I had been hosting this site on GitHub pages for sometime but I had been feeling quite glum about a few things. GitHub pages did not support HTTPS for my custom domain and neither was it fronted by a CDN (although I do belive GitHub pages might be using Fastly) that I had some control over. One other thing that had been bugging me was the fact that because the site was largely static HTML, I did not update it often because I was lazy.

I took some time today to move my nameservers over to a Cloudflare and start using it as a CDN. I found some instructions on the Cloudflare site. Cloudflare also supports getting a “free” SSL cert if you use their service. I feel much better now since my team and I did the work to move nytimes.com behind a CDN and serve it over HTTPS, last year. I just had to catch up.

Now, there are some documented issues with my approach. I still went ahead with this for the time being. The key here is to ensure that you enable SSL on your origin behind your CDN too. While that is currently not possible with GitHub pages when serving a custom domain, it does get enforced in a roundabout way with mysite.github.io being redirected to my custom domain which then redirects to the HTTPS site. As always, security is never foolproof and there are weak links somewhere along the chain but this is a step in the right direction vs. serving unencrypted.

A quick dig confirms the site is moved over to the new DNS since it is using the new nameservers from Cloudflare.

$ dig deepkapadia.com +noall +answer

; <<>> DiG 9.10.3-P4-Ubuntu <<>> deepkapadia.com +noall +answer
;; global options: +cmd
deepkapadia.com.	163	IN	A	104.31.71.130
deepkapadia.com.	163	IN	A	104.31.70.130

Plus, I have been wanting to try out a static site generator like Jekyll for some time which is supported by GitHub pages. Although the one that I’d really love to try someday is Hugo. I just went with the lowest barrier to entry here.

I also hope that given these changes, I’ll be more diligent and encouraged to document my thoughts (and probably happenings with my life) a bit more since it is something I wish I’d do more but find excuses to not do so.