From 62cbb9215438ed9487588eeb74f1ae84c2e813d1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 May 2019 12:59:09 +0900 Subject: [PATCH] Fix #4930 --- src/services/drive/add-file.ts | 1 + src/services/drive/delete-file.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 701878b28..eb0b0abaa 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 ba0482dbe..b429ca0db 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!,