diff --git a/src/modules/s3.ts b/src/modules/s3.ts index 9ca7469..7a7a659 100644 --- a/src/modules/s3.ts +++ b/src/modules/s3.ts @@ -8,10 +8,13 @@ export const getS3 = ({ secretKey, accessKey, region, + port, + useSSL = true, }: S3Props): S3Mutable => { const client = new Client({ endPoint: endpoint, - useSSL: true, + port, + useSSL, accessKey, secretKey, region, diff --git a/src/types/s3.types.ts b/src/types/s3.types.ts index d7e6b82..a5ac642 100644 --- a/src/types/s3.types.ts +++ b/src/types/s3.types.ts @@ -4,6 +4,8 @@ export type S3Props = { secretKey: string; accessKey: string; region: string; + port?: number; + useSSL?: boolean; }; export type S3Mutable = {