你要有https安全证书,我的是适用于nginx的证书
私钥 xxxx.key
公钥 xxxx.pem
然后看看你的minio docker 有没有把 /root/.minio 挂载在主机上,如果有那么把两个证书文件放在/root/.minio/certs目录里面。
最后重启minio容器就行了
不确定起没起来的话,docker logs minio 看看日志
- Status: 1 Online, 0 Offline.
- S3-API: https://192.168.0.126:9000 https://172.17.0.1:9000 https://172.18.0.1:9000 https://172.19.0.1:9000 https://127.0.0.1:9000
- Console: https://192.168.0.126:9090 https://172.17.0.1:9090 https://172.18.0.1:9090 https://172.19.0.1:9090 https://127.0.0.1:9090
-
- Documentation: https://min.io/docs/minio/linux/index.html
- Warning: The standard parity is set to 0. This can lead to data loss.
-
- You are running an older version of MinIO released 3 months ago
- Update: Run `mc admin update`
如果有https的连接那么就成功了
- new Minio.Client({
- endPoint: '000.37.00.26',
- port: 9000,
- useSSL: true,
- accessKey: 'yAxxxxxxLZ',
- secretKey: 'AbjjxxxxxxxxxxxxxxxxxxCo21EaY',
- })
如果你开启了https,那么http就访问不了