mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -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
|
||||||
});
|
});
|
||||||
|
@ -49,7 +49,7 @@ fs.readdir(config.uploadsPath, function (err, files) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Unable to scan directory: ' + err);
|
console.log('Unable to scan directory: ' + err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
files.forEach(function (file) {
|
files.forEach(function (file) {
|
||||||
key = path.join('uploads', file)
|
key = path.join('uploads', file)
|
||||||
filePath = path.join(config.uploadsPath, file)
|
filePath = path.join(config.uploadsPath, file)
|
||||||
|
|
|
@ -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