diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 701878b282..eb0b0abaa0 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -199,6 +199,7 @@ async function upload(key: string, stream: fs.ReadStream | Buffer, type: string, const minio = new Minio.Client({ endPoint: meta.objectStorageEndpoint!, + region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined, port: meta.objectStoragePort ? meta.objectStoragePort : undefined, useSSL: meta.objectStorageUseSSL, accessKey: meta.objectStorageAccessKey!, diff --git a/src/services/drive/delete-file.ts b/src/services/drive/delete-file.ts index ba0482dbe2..b429ca0db8 100644 --- a/src/services/drive/delete-file.ts +++ b/src/services/drive/delete-file.ts @@ -21,6 +21,7 @@ export default async function(file: DriveFile, isExpired = false) { const minio = new Minio.Client({ endPoint: meta.objectStorageEndpoint!, + region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined, port: meta.objectStoragePort ? meta.objectStoragePort : undefined, useSSL: meta.objectStorageUseSSL, accessKey: meta.objectStorageAccessKey!,