Skip to content

Commit

Permalink
#53 Default bucket URL for us-east-1 has a different schema than the …
Browse files Browse the repository at this point in the history
…rest.
  • Loading branch information
gsuess committed Jan 20, 2015
1 parent e34f166 commit 5101b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: "edgee:slingshot",
summary: "Directly post files to cloud storage services, such as AWS-S3.",
version: "0.4.0",
version: "0.4.1",
git: "https://github.com/CulturalMe/meteor-slingshot"
});

Expand Down
3 changes: 3 additions & 0 deletions services/aws-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Slingshot.S3Storage = {
.extend({
bucket: Meteor.settings.S3Bucket,
bucketUrl: function (bucket, region) {
if (region === "us-east-1")
return "https://" + bucket + ".s3.amazonaws.com";

return "https://" + bucket + ".s3-" + region + ".amazonaws.com";
},
region: Meteor.settings.AWSRegion || "us-east-1",
Expand Down

0 comments on commit 5101b5e

Please sign in to comment.