Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
项目地址GitHub项目链接
搭建教程
fork该仓库
前往Cloudflare R2新建一个R2储存桶,并前往储存桶设置,允许公开访问,复制公共存储桶 URL
前往Cloudflare Pages新建一个站点,选择连接到Git
选择刚刚fork的仓库,点击开始设置
项目名称可以修改,其他项目保持默认不动
展开环境变量,添加:
变量名称
值
PUBURL
复制的公共存储桶URL
GUEST
public/
admin:123456
*
user1:123456
user1/,userPublic/
以此类推,GUEST代表游客的允许写入目录。
管理员则以账号:密码的形式设置,值代表其允许写入的目录,用,隔开,请勿在前后加逗号,否则会授予所有目录的写入权限。
设置好后点击开始部署。
前往Pages->cloudflare-r2-oss->设置->函数->R2 存储桶绑定,绑定R2存储桶,变量名称BUCKET。
在部署页面重新部署即可。

