Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

附件图片上云计划 #7

Closed
zgq354 opened this issue Mar 3, 2020 · 3 comments
Closed

附件图片上云计划 #7

zgq354 opened this issue Mar 3, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@zgq354
Copy link
Member

zgq354 commented Mar 3, 2020

目前站点的图片附件用的阿里云 CDN 代理加载,但因为域名无法备案,只能用香港的服务器,带宽方面是个鸡肋,目前发现腾讯云 COS 可以很方便地做静态 CDN,准备尝试这样的方案。

大致需完成两步:

  1. 在COS开通相关存储桶(已完成)
  2. 修改图片上传插件 (FriendsOfFlarum/upload),渲染页面时将原本的链接替换成 COS 的链接

完成后可实现图片的秒开

@zgq354 zgq354 added this to To do in 0xFFFF Dev Mar 3, 2020
@zgq354 zgq354 added the enhancement New feature or request label Mar 3, 2020
@zgq354
Copy link
Member Author

zgq354 commented Mar 3, 2020

已通过域名302跳转的方式实现

@zgq354 zgq354 closed this as completed Mar 3, 2020
@zgq354 zgq354 moved this from To do to Done in 0xFFFF Dev Mar 3, 2020
@zgq354
Copy link
Member Author

zgq354 commented Mar 4, 2020

还存在一个问题,更新后和 Service Worker 有冲突,暂时禁用了 Service Worker,待解决

@zgq354 zgq354 reopened this Mar 4, 2020
@zgq354 zgq354 moved this from Done to In progress in 0xFFFF Dev Mar 4, 2020
@zgq354 zgq354 self-assigned this Mar 4, 2020
@zgq354
Copy link
Member Author

zgq354 commented Apr 3, 2020

根据 这个帖,腾讯云 COS 支持 Amazon S3 协议,更新了 Flarum China 的上传插件,现已完整支持附件上传。

@zgq354 zgq354 closed this as completed Apr 3, 2020
@zgq354 zgq354 moved this from In progress to Done in 0xFFFF Dev Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
0xFFFF Dev
  
Done
Development

No branches or pull requests

1 participant