Skip to main content

Cloudflare Storage Setup

How to Configure CloudFlare R2 Storage​

1

Access Cloudflare​

Register and log in to your CloudFlare account.

2

Create Bucket​

Select CloudFlare R2 from the side menu and click the "Create Bucket" button.

Specify the bucket name as needed as shown below and click "**Create Bucket.**"
3

Create Tokens​

After your bucket is created, click on the "Manage R2 API Token" link.

You will be redirected to your API Tokens page. Click the "**Create API Token**" button as shown below.
Provide Token name as needed, in Permission section select Object Read & Write and specify if you want this token to be valid of a specific bucket or all your buckets afterwards click on **Create API Token** button as shown below.
On the next page, copy your Access Key ID, Secret Access Key, and Endpoint URL, then click the "Finish" button as shown below.
4

Enter Credentials​

Go to your Admin -> Settings -> Storage Settings and enter your CloudFlare R2 Access Key, Secret Access Key, Endpoint URL, and Bucket name, then click "Save." as shown below

Ready to build with CodeGuru?

Browse Hirevia, SocialSwap, and more — docs here, products on codeguru.online.