Cloud Storage Variables
These environment variables control how Cloud Storage is configured and used.
4 min read·2 tags
These environment variables control how Cloud Storage is configured and used. Every setting in the plugin maps to an environment variable by uppercasing its option name and replacing hyphens with underscores.
Provider selection
| Variable | Type | Description |
|---|---|---|
| MCLOUD_TOOL_ENABLED_STORAGE | boolean | Enables the Cloud Storage tool. |
| MCLOUD_STORAGE_PROVIDER | string | Storage provider. Valid values: s3, google, cloudflare, do, bunnycdn, dreamhost, minio, other-s3, backblaze-s3, supabase, wasabi, backblaze. |
wasabi and backblaze select the deprecated native drivers. Use other-s3 or backblaze-s3 for current S3-compatible connections.
S3 and S3-compatible providers
These variables apply to Amazon S3, Minio, DreamHost, Backblaze S3, Cloudflare R2, and other S3-compatible providers.
| Variable | Type | Description |
|---|---|---|
| MCLOUD_STORAGE_S3_ACCESS_KEY | string | Access key. |
| MCLOUD_STORAGE_S3_SECRET | string | Secret key. |
| MCLOUD_STORAGE_S3_USE_CREDENTIAL_PROVIDER | boolean | Load credentials from the environment or ~/.aws/credentials. |
| MCLOUD_STORAGE_S3_REGION | string | Region name, or auto to detect it. |
| MCLOUD_STORAGE_S3_CUSTOM_REGION | string | Custom region when MCLOUD_STORAGE_S3_REGION=custom. |
| MCLOUD_STORAGE_S3_BUCKET | string | Bucket name. |
| MCLOUD_STORAGE_S3_ENDPOINT | host | Endpoint host for S3-compatible services. |
| MCLOUD_STORAGE_S3_USE_PATH_STYLE_ENDPOINT | boolean | Use path-style requests. Required by most S3-compatible services. |
| MCLOUD_STORAGE_S3_USE_TRANSFER_ACCELERATION | boolean | Enable S3 transfer acceleration. |
Provider-specific variables
| Variable | Type | Description |
|---|---|---|
| MCLOUD_STORAGE_GOOGLE_BUCKET | string | Google Cloud Storage bucket. |
| MCLOUD_STORAGE_GOOGLE_CREDENTIALS_FILE | path | Path to the Google service account JSON. |
| MCLOUD_STORAGE_CLOUDFLARE_R2_PUBLIC_URL | url | Public bucket URL for Cloudflare R2. |
| MCLOUD_STORAGE_BACKBLAZE_S3_PRIVACY | string | public-read or authenticated-read, matching the B2 bucket. |
| MCLOUD_STORAGE_SUPABASE_URL | url | Supabase project URL. |
| MCLOUD_STORAGE_SUPABASE_KEY | string | Supabase service_role key. |
| MCLOUD_STORAGE_SUPABASE_BUCKET | string | Supabase bucket name. |
| MCLOUD_STORAGE_BUNNYCDN_APIKEY | string | Bunny CDN storage API key. |
| MCLOUD_STORAGE_BUNNYCDN_STORAGE_ZONE | string | Bunny storage zone name. |
| MCLOUD_STORAGE_BUNNYCDN_PULL_ZONE | url | Bunny pull zone URL. |
| MCLOUD_STORAGE_BUNNYCDN_REGION | string | Bunny storage region. |
| MCLOUD_STORAGE_BUNNYCDN_TOKEN_AUTH_KEY | string | Bunny URL token authentication key. |
| MCLOUD_STORAGE_BUNNYCDN_SIGNED_MATCHES | string | URL patterns to sign for Bunny. |
Upload and privacy
| Variable | Type | Description |
|---|---|---|
| MCLOUD_STORAGE_PRIVACY | string | Default ACL: public-read or authenticated-read. |
| MCLOUD_STORAGE_PRIVACY_IMAGES | string | ACL for image uploads: inherit, public-read, authenticated-read. |
| MCLOUD_STORAGE_PRIVACY_VIDEO | string | ACL for video uploads. |
| MCLOUD_STORAGE_PRIVACY_AUDIO | string | ACL for audio uploads. |
| MCLOUD_STORAGE_PRIVACY_DOCS | string | ACL for document uploads. |
| MCLOUD_STORAGE_PREFIX | string | Upload path prefix. Supports the path tokens. |
| MCLOUD_STORAGE_UPLOAD_IMAGES | boolean | Upload images. |
| MCLOUD_STORAGE_UPLOAD_VIDEOS | boolean | Upload video files. |
| MCLOUD_STORAGE_UPLOAD_AUDIO | boolean | Upload audio files. |
| MCLOUD_STORAGE_UPLOAD_DOCUMENTS | boolean | Upload documents. |
| MCLOUD_STORAGE_IGNORED_MIME_TYPES | string | MIME types to skip. |
| MCLOUD_STORAGE_OVERWRITE_EXISTING | boolean | Overwrite existing files instead of adding a unique prefix. |
| MCLOUD_STORAGE_CACHE_CONTROL | string | Cache-Control metadata for uploads. |
| MCLOUD_STORAGE_EXPIRES | number | Expires metadata in minutes. |
| MCLOUD_STORAGE_DELETE_FROM_SERVER | boolean | Delete files from storage when deleted from the media library. |
| MCLOUD_STORAGE_DELETE_UPLOADS | boolean | Delete local files after upload. |
| MCLOUD_STORAGE_DISPLAY_BADGE | boolean | Show the cloud icon in the media library. |
URLs and delivery
| Variable | Type | Description |
|---|---|---|
| MCLOUD_STORAGE_CDN_BASE | url | CDN base URL for images. |
| MCLOUD_STORAGE_DOC_CDN_BASE | url | CDN base URL for non-image files. |
| MCLOUD_STORAGE_USE_PRESIGNED_URLS | boolean | Generate signed URLs. |
| MCLOUD_STORAGE_PRESIGNED_EXPIRATION | number | Signed URL lifetime in minutes. |
| MCLOUD_STORAGE_FORCE_WEBP | boolean | Use WebP URLs when a WebP file exists. |
Multisite
| Variable | Type | Description |
|---|---|---|
| MCLOUD_STORAGE_SUBSITE_PREFIXES | string | Per-site upload path overrides. |
| MCLOUD_STORAGE_KEEP_SUBSITE_PATH | boolean | Keep the site/<id>/ segment when a custom prefix is used. |
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.