Skip to content

Commit

Permalink
Merge pull request keystonejs#10 from blargity/improve-region-handling
Browse files Browse the repository at this point in the history
Region handling clarity
  • Loading branch information
JedWatson authored Nov 23, 2016
2 parents 0e5de3e + 38a49a9 commit 4fb4ce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var storage = new keystone.Storage({
key: 's3-key', // required; defaults to process.env.S3_KEY
secret: 'secret', // required; defaults to process.env.S3_SECRET
bucket: 'mybucket', // required; defaults to process.env.S3_BUCKET
region: 'ap-southeast-2', // optional; defaults to process.env.S3_REGION, or if that's not specified, us-east-1
path: '/profilepics',
headers: {
'x-amz-acl': 'public-read', // add default headers; see below for details
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var DEFAULT_OPTIONS = {
key: process.env.S3_KEY,
secret: process.env.S3_SECRET,
bucket: process.env.S3_BUCKET,
region: process.env.S3_REGION || 'us-east-1',
generateFilename: nameFunctions.randomFilename,
};

Expand Down

0 comments on commit 4fb4ce1

Please sign in to comment.