fix minio2
This commit is contained in:
parent
fe493fe053
commit
9b98b3c0c6
@ -1,14 +1,17 @@
|
||||
const Minio = require('minio');
|
||||
const https = require('https');
|
||||
|
||||
const minioClient = new Minio.Client({
|
||||
endPoint: process.env.MINIO_ENDPOINT.replace(/^https?:\/\//, ''),
|
||||
port: parseInt(process.env.MINIO_PORT),
|
||||
useSSL: false,
|
||||
useSSL: process.env.MINIO_USE_SSL === 'true',
|
||||
accessKey: process.env.MINIO_ACCESS_KEY,
|
||||
secretKey: process.env.MINIO_SECRET_KEY,
|
||||
pathStyle: true,
|
||||
transport: {
|
||||
agent: false,
|
||||
agent: new https.Agent({
|
||||
rejectUnauthorized: false
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user