Ghost uses X-Forwarded-Proto header to determine what type of HTTP protocol client uses (http/https).
Amazon CloudFront can not pass this header but it can send to Ghost following header: cloudfront-forwarded-proto. This is a limitation of CloudFront.
Is there a way to set up Ghost to read this header (cloudfront-forwarded-proto) instead of standard X-Forwarded-Proto?
We use Ghost in production mode. When we specify blog’s URL with http:// scheme the blog works. If we use https:// scheme - many redirects happen, because Ghost can’t see cloudfront-forwarded-proto provided by AWS CloudFront.
Thanks a lot!