mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-03 01:08:57 +09:00
Fix #4930
This commit is contained in:
parent
54bfffa7b9
commit
62cbb92154
@ -199,6 +199,7 @@ async function upload(key: string, stream: fs.ReadStream | Buffer, type: string,
|
|||||||
|
|
||||||
const minio = new Minio.Client({
|
const minio = new Minio.Client({
|
||||||
endPoint: meta.objectStorageEndpoint!,
|
endPoint: meta.objectStorageEndpoint!,
|
||||||
|
region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined,
|
||||||
port: meta.objectStoragePort ? meta.objectStoragePort : undefined,
|
port: meta.objectStoragePort ? meta.objectStoragePort : undefined,
|
||||||
useSSL: meta.objectStorageUseSSL,
|
useSSL: meta.objectStorageUseSSL,
|
||||||
accessKey: meta.objectStorageAccessKey!,
|
accessKey: meta.objectStorageAccessKey!,
|
||||||
|
@ -21,6 +21,7 @@ export default async function(file: DriveFile, isExpired = false) {
|
|||||||
|
|
||||||
const minio = new Minio.Client({
|
const minio = new Minio.Client({
|
||||||
endPoint: meta.objectStorageEndpoint!,
|
endPoint: meta.objectStorageEndpoint!,
|
||||||
|
region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined,
|
||||||
port: meta.objectStoragePort ? meta.objectStoragePort : undefined,
|
port: meta.objectStoragePort ? meta.objectStoragePort : undefined,
|
||||||
useSSL: meta.objectStorageUseSSL,
|
useSSL: meta.objectStorageUseSSL,
|
||||||
accessKey: meta.objectStorageAccessKey!,
|
accessKey: meta.objectStorageAccessKey!,
|
||||||
|
Loading…
Reference in New Issue
Block a user