mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Switch to minio v7 API
The secure parameter is now called useSSL https://github.com/minio/minio-js/releases/tag/7.0.0 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1153b9a1bb
commit
252141560f
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ if (config.dbURL) {
|
||||||
const minioClient = new Minio.Client({
|
const minioClient = new Minio.Client({
|
||||||
endPoint: config.minio.endPoint,
|
endPoint: config.minio.endPoint,
|
||||||
port: config.minio.port,
|
port: config.minio.port,
|
||||||
secure: config.minio.secure,
|
useSSL: config.minio.secure,
|
||||||
accessKey: config.minio.accessKey,
|
accessKey: config.minio.accessKey,
|
||||||
secretKey: config.minio.secretKey
|
secretKey: config.minio.secretKey
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,7 +10,7 @@ const Minio = require('minio')
|
||||||
const minioClient = new Minio.Client({
|
const minioClient = new Minio.Client({
|
||||||
endPoint: config.minio.endPoint,
|
endPoint: config.minio.endPoint,
|
||||||
port: config.minio.port,
|
port: config.minio.port,
|
||||||
secure: config.minio.secure,
|
useSSL: config.minio.secure,
|
||||||
accessKey: config.minio.accessKey,
|
accessKey: config.minio.accessKey,
|
||||||
secretKey: config.minio.secretKey
|
secretKey: config.minio.secretKey
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue