From a6a6d1f1b70e06dacb2d63dbdd4e80ce77309e5d Mon Sep 17 00:00:00 2001 From: Alberto Quiles Date: Sun, 4 Oct 2026 09:53:49 +0200 Subject: [PATCH] feat: allow configuring port and ssl in s3 client - fix #138 --- src/modules/s3.ts | 5 ++++- src/types/s3.types.ts | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 = {