summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2021-02-12 23:09:38 +0100
committerDavid Mehren2021-02-12 23:11:37 +0100
commit252141560f8ffcf88f18347f2161b5f3c78ffe12 (patch)
tree7ba4d2ebdaf05e31ebe3d39eac4f5042a94f7830
parent1153b9a1bb07d8ea0fb1cdb23107b8b9ecaa181b (diff)
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>
Diffstat (limited to '')
-rwxr-xr-xbin/migrate_from_fs_to_minio4
-rw-r--r--lib/web/imageRouter/minio.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/migrate_from_fs_to_minio b/bin/migrate_from_fs_to_minio
index 104c84c2..72d7c70c 100755
--- a/bin/migrate_from_fs_to_minio
+++ b/bin/migrate_from_fs_to_minio
@@ -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)
diff --git a/lib/web/imageRouter/minio.js b/lib/web/imageRouter/minio.js
index fe43f76f..91de5ff1 100644
--- a/lib/web/imageRouter/minio.js
+++ b/lib/web/imageRouter/minio.js
@@ -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
})