S3 Query-string order seems incorrect
KingLemon opened this issue · 1 comments
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.
@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.