Cloudflare R2
Posted on January 1, 2022
Tags: cloudflare
1 R2
Say you create a R2 bucket called mysuperimages
- First you need to add a
CNAME
so you can make a subdomain.- if you have
example.com
as your domain - example.com >> DNS >> Records, “DNS management for example.com” -> Add record
- Type: CNAME
- Name:
images.example.com
- Target: mysuperimages
- Proxied: True
- TTL: Auto
- if you have
Then go to R2 >> mysuperimages
>> Settings >> Custom Domains >> Connect Domain
Enter: images.example.com
Note that even though it is not a dropdown option, it will work.
Now you can access your image at something like images.example.com/mysuperimages%2Fsomeimage.png