diff --git a/README.md b/README.md index b3fc53b..1a4b9f4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ const S3Notifier = require('fastboot-s3-notifier'); let notifier = new S3Notifier({ bucket: S3_BUCKET, key: S3_KEY, - region: AWS_REGION // optional + region: AWS_REGION, // optional + endpoint: AWS_ENDPOINT_URL // optional }); let server = new FastBootAppServer({ diff --git a/index.js b/index.js index 9843d8e..7d4c5c5 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,8 @@ class S3Notifier { this.s3 = new AWS.S3({ apiVersion: '2006-03-01', signatureVersion: 'v4', - region: options.region + region: options.region, + endpoint: options.endpoint }); }