4 ms·
How are you using CloudFlare for S3 images? Are you using Flexible SSL? The problem I ran into was setting up a CNAME for an S3 bucket requires the bucket name
by waffle_ss 11y ago
How are you using CloudFlare for S3 images? Are you using Flexible SSL?
The problem I ran into was setting up a CNAME for an S3 bucket requires the bucket name to have periods in it, but https:// https:// access no longer works for buckets with that naming convention[1]. So I ended up having to use CloudFront instead for my images.
[1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestri...
- LoSboccacc 11y agothere is a middleware included :P we have a document store backed by S3 running on EC2 instances, the instances are behind one of amazon balancing routers and that's what the cloudflare cname points at currently the beta env runs flexible ssl and production runs with strict.
- ehPReth 11y agoThere's an alternate URL prefix you can use if your bucket name has periods: http://documents.scribd.com.s3.amazonaws.com/docs/91ltsqq5fk3v49gk.pdf http://documents.scribd.com.s3.amazonaws.com/docs/91ltsqq5fk... becomes https://s3.amazonaws.com/documents.scribd.com/docs/91ltsqq5fk3v49gk.pdf https://s3.amazonaws.com/documents.scribd.com/docs/91ltsqq5f...
- waffle_ss 11y agoIf you use s3.amazonaws.com then you aren't using a CNAME anymore, meaning you can't use CloudFlare to accelerate the traffic. CloudFlare needs to control the DNS.