mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26: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({
|
||||
endPoint: config.minio.endPoint,
|
||||
port: config.minio.port,
|
||||
secure: config.minio.secure,
|
||||
useSSL: config.minio.secure,
|
||||
accessKey: config.minio.accessKey,
|
||||
secretKey: config.minio.secretKey
|
||||
});
|
||||
|
@ -49,7 +49,7 @@ fs.readdir(config.uploadsPath, function (err, files) {
|
|||
if (err) {
|
||||
console.log('Unable to scan directory: ' + err);
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
files.forEach(function (file) {
|
||||
key = path.join('uploads', file)
|
||||
filePath = path.join(config.uploadsPath, file)
|
||||
|
|
|
@ -10,7 +10,7 @@ const Minio = require('minio')
|
|||
const minioClient = new Minio.Client({
|
||||
endPoint: config.minio.endPoint,
|
||||
port: config.minio.port,
|
||||
secure: config.minio.secure,
|
||||
useSSL: config.minio.secure,
|
||||
accessKey: config.minio.accessKey,
|
||||
secretKey: config.minio.secretKey
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue