Skip to content

fengqi/typecho-cloudflare-r2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

typecho-cloudflare-r2

上传文件附件到Cloudflare R2

安装

CloudflareR2复制到usr/plugins/目录下

在后台控制台-插件中启用 Cloudflare R2

配置

  1. Cloudflare R2创建存储,桶名称填入插件配置中的存储桶
  2. Cloudflare R2创建API 令牌,权限选择对象读和写,指定存储桶选择刚刚创建的存储桶,提交后在插件配置中填入页面上显示的访问密钥ID机密访问密钥Endpoint
  3. Cloudflare R2桶设置-自定义域,填写要使用的域名,完成填入插件配置中的公开访问域名

使用

正常上传文件附件即可,插件会自动将文件上传到Cloudflare R2,并返回公开访问的文件URL,不影响已经上传的本地文件。

About

upload img to cloudflare r2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages