Skip to Content
Media GatewayStorage (R2 / GDrive)

Storage

R2 (Primary)

Cloudflare R2 is the primary storage backend. Files >= 50MB use multipart upload.

Bucket Structure

creative-assets/ β”œβ”€β”€ inbox/ Human drop zone (auto-processed) β”œβ”€β”€ video/ Video assets β”œβ”€β”€ image/ Image assets β”œβ”€β”€ audio/ Audio assets β”œβ”€β”€ other/ Other files β”œβ”€β”€ reference/ Reference materials β”œβ”€β”€ brand/ Brand assets β”œβ”€β”€ jobs/ Job runner output β”œβ”€β”€ outbox/ Publish queue └── projects/ Agent production pipeline └── {slug}/ β”œβ”€β”€ brief.md β”œβ”€β”€ reference/ β”œβ”€β”€ generates/ β”œβ”€β”€ selects/ β”œβ”€β”€ post/ └── exports/

Configuration

VariableDescription
R2_ACCOUNT_IDCloudflare account ID
R2_ACCESS_KEY_IDR2 API access key
R2_SECRET_ACCESS_KEYR2 API secret
R2_BUCKET_NAMEBucket name (default: creative-assets)
R2_PUBLIC_DOMAINPublic access domain

GDrive (Fallback)

Google Drive is available as a fallback storage provider using a service account.