From c5235e69ef3db257e023ee5c9ccbded1d3d7ac7a Mon Sep 17 00:00:00 2001 From: Jeff Jewiss Date: Tue, 3 Oct 2017 15:55:45 +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 bfe3fb1..ca0445e 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ let downloader = new S3Downloader({ key: S3_KEY, accessKeyId: AWS_KEY, // optional secretAccessKey: AWS_SECRET, // optional - 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 7281da9..290b2cb 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,8 @@ class S3Downloader { signatureVersion: 'v4', accessKeyId: options.accessKeyId, secretAccessKey: options.secretAccessKey, - region: options.region + region: options.region, + endpoint: options.endpoint }); }