Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Query-string order seems incorrect #74

Open
KingLemon opened this issue Jul 7, 2020 · 1 comment
Open

S3 Query-string order seems incorrect #74

KingLemon opened this issue Jul 7, 2020 · 1 comment

Comments

@KingLemon
Copy link

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants