Hosting Ghost on Digital Ocean with Cloudflare

A simple fix for redirect errors when self-hosting Ghost on Digital Ocean while using Cloudflare for DNS

Share
Hosting Ghost on  Digital Ocean with Cloudflare

I'm currently using GhostPro for hosting my site, but recently tried setting up a test instance in Digital Ocean with the domain managed via Cloudflare.

Everything was installed according to the docs, but I ended up receiving an error when trying to go to the custom domain with a "Too many Redirects" message.

After spending about half an hour searching for a solution and messing with the Nginx configuration, I came across this comment on Github

https://github.com/TryGhost/Ghost/issues/2796#issuecomment-392327647

I couldn't find a "Disable Universal SSL" option, but setting the SSL/TLS encryption mode to "Full (strict)" from within the SSL/TLS -> Overview settings did resolve the issue