Skip to content

Commit bd6c202

Browse files
author
Andy Ruck
committed
fix: docker ssl issues
1 parent 2753adf commit bd6c202

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
init: ({ endPoint, bucket, port, accessKey, secretKey, useSSL, folder, isDocker, host, ..._options }) => {
1414
const MINIO = new Minio.Client({
1515
port: parseInt(port, 10),
16-
useSSL,
16+
useSSL: false,
1717
endPoint,
1818
accessKey,
1919
secretKey,
@@ -35,7 +35,8 @@ module.exports = {
3535
let hostPart = `${MINIO.protocol}//${MINIO.host}:${MINIO.port}`;
3636

3737
if (isDocker) {
38-
hostPart = `${MINIO.protocol}//${host}`;
38+
const http = useSSL ? 'https' : 'http';
39+
hostPart = `${http}://${host}`;
3940
}
4041

4142
file.url = `${hostPart}/${filePath}`;

0 commit comments

Comments
 (0)