该介绍目前仅提供英文版本。
Overview
FlareDrive is a Cloudflare R2 storage manager built with Pages and Workers. It takes advantage of R2’s free 10 GB tier and the free Workers allowance of 100,000 requests per day.
Features
- Upload large files with drag and drop
- Create folders and search files
- Thumbnails for images, videos and PDFs
- A WebDAV endpoint, so any WebDAV client can access your files
Setup
- Make sure R2 is activated and at least one bucket exists.
- Fork the project and connect it to Cloudflare Pages (Docusaurus preset), setting
WEBDAV_USERNAMEandWEBDAV_PASSWORD; optionally setWEBDAV_PUBLIC_READ=1. - After the first deployment, bind your bucket to the
BUCKETvariable and redeploy.
You can also deploy with Wrangler:
npm run build
npx wrangler pages deploy build