Cloudflare R2 filesystem for Craft CMS
This plugin requires Craft CMS ^4.0.0-beta.1 and PHP ^8.0.2
To install the plugin, follow these instructions.
Open your terminal and go to your Craft project:
cd /path/to/project
Then tell Composer to load the plugin:
composer require jrrdnx/craft-cloudflare-r2
Navigate to Settings -> Plugins and click the "Install" button for Cloudflare R2.
.env
file and reference the environment variables here)..env
file and reference the environment variable).See Create Public Buckets on R2 for details on adding a custom domain or managing public buckets through r2.dev, or Use R2 from Workers for more fine-tuned access control. Also feel free to reference a full guide to Configuring a Cloudflare R2 Bucket and Worker for Public Access.
Brought to you by Jarrod D Nix