Complete S3 setup · Cloudflare R2

Cloudflare R2 Setup Guide

Create an R2 bucket, API token, CORS policy, and ShrimpSend settings.

When to use R2

  • S3-compatible storage with favorable egress pricing.

Create bucket

R2 → Create bucket.

R2 create bucket
R2 create bucket

API token

Manage R2 API Tokens → Create with Object Read & Write on one bucket.

R2 API token
R2 API token

S3 API Endpoint from bucket Settings.

CORS

Settings → CORS Policy; Origins https://xiachuan.net (+ www); full Methods set.

R2 CORS
R2 CORS

ShrimpSend settings

FieldExample
Endpointhttps://<accountid>.r2.cloudflarestorage.com
Regionauto
Path-styleOften on for R2 S3 API
R2 endpoint
R2 endpoint
ShrimpSend form
ShrimpSend form

FAQ

Region often auto. 403 → token scope. This is your R2 bucket, not platform built-in S3.