colinmeinke / ghost-storage-adapter-s3

An AWS S3 storage adapter for Ghost
Other
182 stars 87 forks source link

S3 Query-string order seems incorrect #74

Open KingLemon opened 4 years ago

KingLemon commented 4 years ago

Ghost-storage-adapter-s3 is pushing the url "bucket.region.s3.amazonaws.com" to the browser and the images are not returning on the site from s3 properly. When I enter that url format directly into the browser I'm getting an error -code "nosuchbucket" -message "the specified bucket does not exist". It seems like if "s3" and "region" are reversed in the string, the images pull up, however I can't figure out how to update the order of the string on the return. When I use: "bucket-name.s3.region.amazonaws.com" it works. Not fully sure. help.

konstantinvlasenko commented 4 years ago

@KingLemon try to use assetHost configuration. I see the main intent is to use it for CDN (CloudFront). But I think you can set your bucket url //bucket-name.s3.region.amazonaws.com there as well. BTW: Ideally, you want to use CloudFront.