STORAGE_TYPE environment variable.
Local storage
Local storage writes files directly to disk on the machine running Clipzy. It requires no external services and is the simplest option for getting started.LOCAL_STORAGE_PATH can be an absolute or relative path. Clipzy creates the directory if it does not exist. The process must have read and write access to this path.
When using local storage, storage_url values in API responses are relative paths:
S3 storage
SetSTORAGE_TYPE=s3 to store files in Amazon S3 or an S3-compatible service (e.g. MinIO, Cloudflare R2).
When running on AWS infrastructure (EC2, ECS, Lambda), you can omit
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY and grant access via an IAM role attached to your instance or task instead.storage_url values in API responses are pre-signed S3 URLs:
Choosing a backend
| Local | S3 | |
|---|---|---|
| Setup complexity | None | Requires AWS credentials and bucket |
| Multi-worker support | Only with shared filesystem | Yes |
| Scalability | Limited by disk | Effectively unlimited |
| Recommended for | Development, single-node | Production, multi-worker |
Upload size limit
Regardless of storage backend, theMAX_FILE_SIZE_MB variable controls the maximum allowed upload size. Uploads exceeding this limit are rejected before any file is written to storage.