diff options
author | David Mehren | 2021-02-12 23:09:38 +0100 |
---|---|---|
committer | David Mehren | 2021-02-12 23:11:37 +0100 |
commit | 252141560f8ffcf88f18347f2161b5f3c78ffe12 (patch) | |
tree | 7ba4d2ebdaf05e31ebe3d39eac4f5042a94f7830 /bin | |
parent | 1153b9a1bb07d8ea0fb1cdb23107b8b9ecaa181b (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 'bin')
-rwxr-xr-x | bin/migrate_from_fs_to_minio | 4 |
1 files changed, 2 insertions, 2 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) |