Complete S3 setup · Cloudflare R2

Cloudflare R2 Setup Guide

Configure R2 bucket, API token, CORS, and ShrimpSend settings.

Open R2

Build → Storage & databases → R2 object storage → Overview in the Cloudflare Dashboard.

Open R2
Open R2

S3 API endpoint

Copy S3 API from Account details; use API token → Manage to create keys.

Account details
Account details

API token

Create User API token with Object Read & Write on your bucket.

Create token
Create token

Create bucket

+ Create bucket on the Overview page.

Bucket list
Bucket list
Create bucket
Create bucket

CORS

Bucket → Settings → CORS policy → Edit. Paste:

CORS settings
CORS settings
[
  {
    "AllowedOrigins": [
      "https://shrimpsend.com",
      "https://www.shrimpsend.com"
    ],
    "AllowedMethods": [
      "GET",
      "PUT",
      "POST",
      "DELETE",
      "HEAD"
    ],
    "AllowedHeaders": [
      "*"
    ],
    "ExposeHeaders": [
      "ETag",
      "Content-Length"
    ],
    "MaxAgeSeconds": 86400
  }
]
CORS JSON
CORS JSON

ShrimpSend settings

Settings → S3 or S3 settings in the cloud relay session. Endpoint = S3 API, Region = auto, Path-style on.

ShrimpSend settings
ShrimpSend settings

Troubleshooting

403 → token scope and Path-style. Upload failures → CORS Origins.