From 32492f543d61b5089ee5ab1d275d89785f62da03 Mon Sep 17 00:00:00 2001 From: Jeff Jewiss Date: Tue, 3 Oct 2017 16:04:48 +0100 Subject: [PATCH] add support for custom endpoint --- README.md | 3 ++- index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }); }