If you are using Cloudflare for your custom domains, and you’re using S3 with a Cloudflare hosted subdomain, and Heroku has a custom domain set with SSL turned on, your blog won’t load because of infinite redirects.
For https support for S3 buckets (e.g. s3subdomain.example.com
pointing to s3subdomain.example.com.s3.amazon.com
), Cloudflare SSL setting must be “Flexible”: Cloudflare makes http requests to s3subdomain.example.com
and then serves up over https.
Because Flexible is set, Cloudflare makes http requests to ghostblog.example.com
which is set on Heroku and Heroku by default sets up an SSL certificate and will redirect http requests to https, which causes infinite redirects.
Solution:
ghostblog.example.com
Neither of these are ideal, and is ONLY the case because you need to keep Flexible turned on to get https serving of S3 bucket subdomain (which you’re doing with Cloudflare because Amazon’s Cloudfront takes 53 steps to setup).
More reading on Cloudflare plus Heroku and Full SSL / Full SSL (Strict) is here https://www.viget.com/articles/heroku-cloudflare-the-right-way/
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too