Skip to content

Commit bb933cc

Browse files
David Poetzsch-Heffterflovilmart
authored andcommitted
also using base url as endpoint in order to use aws s3 compatible alternatives (#23)
1 parent eaed388 commit bb933cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ function S3Adapter() {
2323
let s3Options = {
2424
params: { Bucket: this._bucket },
2525
region: this._region,
26+
endpoint: this._baseUrl,
27+
s3BucketEndpoint: !!this._baseUrl,
2628
signatureVersion: this._signatureVersion,
2729
globalCacheControl: this._globalCacheControl
2830
};

0 commit comments

Comments
 (0)