dochub2.4 本地部署minio 上传转化预览都正确了,但是下载的时候签名错误,无法下载
qq547057827 opened this issue · 1 comments
qq547057827 commented
dochub2.4 本地部署minio 上传转化预览都正确了,但是下载的时候签名错误,无法下载
SignatureDoesNotMatch
The request signature we calculated does not match the signature you provided. Check your key and signing method.
而且 如果 私有Bucket域名 填写 http://xx.xx.xx.xx.:9000/dochub-private
路径中出现两次 dochub-private
怀疑出现代码中多加了一个dochub-private 导致签名不正确
jht385 commented
CloudStore\minio.go 有个过期时间小于0,临时办法默认加个 "/dochub-public"
func (m *MinIO) GetSignURL(object string, expire int64) (link string, err error) { if expire <= 0 { link = m.Domain + "/dochub-public" + objectAbs(object) return }
让构建的url
能够拼出 http://192.168.99.100:9000/dochub-public/40ff84824b4c4b6aa2ec70194c06238c.jpg
的结构就能正常显示了