我使用docker安装的onlyoffice服务。我想使用minio存储缓存,minio是https的,但是会报错:
[uid-118] nodeJS - storage.listObjects: Error: self signed certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
at TLSSocket.emit (node:events:527:28)
at TLSSocket._finishInit (node:_tls_wrap:946:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12)
我的配置如下:
"storage": {
"name": "storage-s3",
"region": "us-east-1",
"endpoint": "https://xxxxx.com:7000",
"bucketName": "xxxxx",
"storageFolderName": "files",
"urlExpires": 604800,
"accessKeyId": "8QZ29kQ5QFH7DwAF",
"secretAccessKey": "hJrvStfcDA6dR7gIXUSgWduI9BxussV9",
"sslEnabled": false,
"s3ForcePathStyle": true
}
环境变量已经添加USE_UNAUTHORIZED_STORAGE
root@8c002a4b4afc:/# env|grep USE_UNAUTHORIZED_STORAGE
USE_UNAUTHORIZED_STORAGE=true
default.json文件也修改了rejectUnauthorized
"requestDefaults": {
"headers": {
"User-Agent": "Node.js/6.13",
"Connection": "Keep-Alive"
},
"gzip": true,
"rejectUnauthorized": false
},
我的minio是用nginx代理成https的,crt证书是自制的。
onlyoffice也改成了https访问,证书已经放到了/var/www/onlyoffice/Data/certs/下。
请问这个报错如何解决