sy-records / sync-qcloud-cos

💾 使用腾讯云对象存储服务COS作为附件存储空间的WordPress插件。https://wordpress.org/plugins/sync-qcloud-cos/
https://qq52o.me/2518.html
Apache License 2.0
148 stars 18 forks source link

增加全球加速 #13

Closed Y2Nk4 closed 4 years ago

Y2Nk4 commented 4 years ago

全球加速文档地址:https://cloud.tencent.com/document/product/436/38866 全球加速的域名格式为:<BucketName-APPID>.cos.accelerate.myqcloud.com,与地域的格式一致 所以添加accelerate项用于使用COS的全球加速来上传文件(需要在COS控制台中开启全球加速服务)

sy-records commented 4 years ago

看了下,这个需要sdk支持,现在还不支持,晚点去给提个pr

Y2Nk4 commented 4 years ago

好的 但我这边自己试过,应该是直接可以用的

sy-records commented 4 years ago

你是访问吧?上传用的那个呢? image

Y2Nk4 commented 4 years ago

我只是用的上传,访问用的是CDN的域名

sy-records commented 4 years ago

嗯,看了下源码,是支持的 image

Y2Nk4 commented 4 years ago

好的,我一开始也没看源码,我看到文档说上传直接使用对应的加速域名即可就直接把地域换成accelerate去上传。