When I got this blog installed and set up on a Hetzner VPS, all was working fine, until I switched on the Cloudflare Proxy in the DNS settings. I faced an issue where Chrome and other browsers were returning the following error. "This page isn’t working blog.lanway.dev redirected you too many times." error code:
After doing some digging on various forums and blogs, I eventually found the answer.
This is rather simple, as Ghost generates its own self-signed SSL certificate by Let's Encrypt, therefore Cloudflare's Flexible SSL is not required. To fix this head over to your Cloudflare dashboard and go to
SSL/TTL section and set the SSL encrypt mode to
After a few seconds the redirect issue should be gone.