TinyShip
TinyShip
 TinyShip
TinyShip
TinyShip Documentation
TinyShip User GuideGetting StartedBasic Configuration
Credits System Configuration
Storage Service ConfigurationDatabase ConfigurationCaptcha Configuration
Development Best PracticesLocal E2E Workflow
User Guide

Storage Service Configuration

Configure file storage providers

TinyShip provides a unified storage layer across major object storage vendors.

Supported Providers

ProviderAdvantageRecommended Use
Aliyun OSSFast in China, Alibaba ecosystemChina-focused apps
AWS S3Global ecosystem and maturityInternational apps
Cloudflare R2No egress fee, cost-efficientCost-sensitive apps
Tencent COSStrong CN cloud ecosystemChina-focused apps

Environment Variables

STORAGE_PROVIDER=oss

OSS_REGION=oss-cn-shanghai
OSS_ACCESS_KEY_ID=your_access_key_id
OSS_ACCESS_KEY_SECRET=your_access_key_secret
OSS_BUCKET=your-bucket-name

S3_REGION=us-east-1
S3_ACCESS_KEY_ID=your_access_key_id
S3_ACCESS_KEY_SECRET=your_secret_access_key
S3_BUCKET=your-bucket-name

CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_id
R2_ACCESS_KEY_ID=your_r2_access_key_id
R2_ACCESS_KEY_SECRET=your_r2_access_key_secret
R2_BUCKET=your-bucket-name

COS_REGION=ap-guangzhou
COS_SECRET_ID=your_secret_id
COS_SECRET_KEY=your_secret_key
COS_BUCKET=your-bucket-name-appid

R2 now recommends CLOUDFLARE_ACCOUNT_ID; R2_ACCOUNT_ID is kept only as backward-compatible fallback.

AI Video Generation Configuration

Configure AI video generation functionality

Database Configuration

Multi-dialect setup for PostgreSQL / SQLite / Cloudflare D1

On this page

Supported ProvidersEnvironment Variables