Skip to content

Commit

Permalink
Merge pull request #1 from william00179/feature/expand-s3-configurati…
Browse files Browse the repository at this point in the history
…on-options

Expanded the S3 configuration options
  • Loading branch information
abudaan authored Aug 16, 2019
2 parents cfa67d4 + 40c61af commit 9b83f8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/StorageAmazonS3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export class StorageAmazonS3 extends AbstractStorage implements IStorage {
throw new Error('provide both an accessKeyId and a secretAccessKey!');
}
this.storage = new S3({
accessKeyId,
secretAccessKey,
...config,
apiVersion: '2006-03-01',
});
// console.log(config, this.bucketName);
Expand Down
7 changes: 7 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Readable } from 'stream';
import {bool} from 'aws-sdk/clients/signer';

export interface IStorage {
/**
Expand Down Expand Up @@ -76,6 +77,12 @@ export type ConfigAmazonS3 = {
bucketName?: string,
accessKeyId: string,
secretAccessKey: string,
endpoint?: string,
useDualstack?: boolean,
region?: string,
maxRetries?: number,
maxRedirects?: number,
sslEnabled?: boolean,
};

export type ConfigGoogleCloud = {
Expand Down

0 comments on commit 9b83f8e

Please sign in to comment.