fix minio
This commit is contained in:
parent
8b6d76fdea
commit
fe493fe053
@ -3,9 +3,13 @@ const Minio = require('minio');
|
|||||||
const minioClient = new Minio.Client({
|
const minioClient = new Minio.Client({
|
||||||
endPoint: process.env.MINIO_ENDPOINT.replace(/^https?:\/\//, ''),
|
endPoint: process.env.MINIO_ENDPOINT.replace(/^https?:\/\//, ''),
|
||||||
port: parseInt(process.env.MINIO_PORT),
|
port: parseInt(process.env.MINIO_PORT),
|
||||||
useSSL: process.env.MINIO_USE_SSL === 'true',
|
useSSL: false,
|
||||||
accessKey: process.env.MINIO_ACCESS_KEY,
|
accessKey: process.env.MINIO_ACCESS_KEY,
|
||||||
secretKey: process.env.MINIO_SECRET_KEY,
|
secretKey: process.env.MINIO_SECRET_KEY,
|
||||||
|
pathStyle: true,
|
||||||
|
transport: {
|
||||||
|
agent: false,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const uploadFile = async (file, folderPath) => {
|
const uploadFile = async (file, folderPath) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user