From caa96f3e26dce364f8d52808b12668a8249176da Mon Sep 17 00:00:00 2001 From: shreedee Date: Tue, 10 Sep 2019 05:08:01 -0600 Subject: [PATCH 1/3] updated to add support for non standard port endpoint --- evaporate.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/evaporate.js b/evaporate.js index 696667af..161351ab 100644 --- a/evaporate.js +++ b/evaporate.js @@ -1017,6 +1017,15 @@ this.awsUrl = awsUrl(this.con); this.awsHost = uri(this.awsUrl).hostname; + /* + * ShreeDee : for compatibility with S3 clones, that are hosted on a non std port. Add the port number + */ + const port = uri(this.awsUrl).port; + + if (!!port && 80 != port && 443 != port) { + this.awsHost += (':' + port ); + } + var r = extend({}, request); if (fileUpload.contentType) { From 97fc5c9cb0b6fc0d82d1be8c1debb94451708e14 Mon Sep 17 00:00:00 2001 From: shreedee Date: Tue, 10 Sep 2019 05:17:31 -0600 Subject: [PATCH 2/3] From b6ad815d22e5e828aa9253fa724a6fd474673ad4 Mon Sep 17 00:00:00 2001 From: shreedee Date: Thu, 4 Mar 2021 09:00:28 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7a4f7f4e..3c7ec264 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Evaporate ========= +## This branch allows to use Custom port for S3 endpoint + [![Build Status](https://travis-ci.org/bikeath1337/EvaporateJS.svg?branch=master)](https://travis-ci.org/bikeath1337/EvaporateJS) [![Code Climate](https://codeclimate.com/github/TTLabs/EvaporateJS/badges/gpa.svg)](https://codeclimate.com/github/TTLabs/EvaporateJS)