These environment variables control how Cloud Storage is configured and used.

 

VariableTypeDescription
MCLOUD_TOOL_ENABLED_STORAGEbooleanCloud storage is enabled.
MCLOUD_STORAGE_PROVIDERstringThe cloud storage provider to use. Valid values: s3, google, do, minio, wasabi, other-s3 and backblaze.
MCLOUD_STORAGE_S3_ACCESS_KEYstringThe access key for S3 and S3-compatible services.
MCLOUD_STORAGE_S3_SECRETstringThe secret key for S3 and S3-compatible services.
MCLOUD_STORAGE_S3_USE_CREDENTIAL_PROVIDERbooleanWhen this is enabled, Media Cloud will load your S3 credentials from the environment, ~/.aws/credentials or ~/.aws/config. When this is enabled, the Access Key and Secret values specified in these settings will be ignored. This is an advanced option and should only be enabled if you know what you are doing.
MCLOUD_STORAGE_S3_REGIONstringThe region name, valid values are service dependent.
MCLOUD_STORAGE_S3_BUCKETstringThe name of the bucket to use for S3 and S3-compatible services.
MCLOUD_STORAGE_S3_ENDPOINThostThe end point host for S3-compatible services. For example, DigitalOcean NYC-3 would be nyc3.digitaloceanspaces.com
MCLOUD_STORAGE_S3_USE_PATH_STYLE_ENDPOINTbooleanSends request to an S3 path style endpoint, for S3-compatible services only.
MCLOUD_STORAGE_S3_USE_TRANSFER_ACCELERATIONbooleanEnables transfer acceleration for Amazon S3 only.
MCLOUD_STORAGE_GOOGLE_BUCKETstringThe name of the bucket to use for Google Cloud Storage.
MCLOUD_STORAGE_GOOGLE_CREDENTIALS_FILEpathThe file path for the Google json credentials file.
MCLOUD_STORAGE_BACKBLAZE_ACCOUNT_IDstringBackblaze account ID.
MCLOUD_STORAGE_BACKBLAZE_BUCKET_URLurlURL for the backblaze bucket.
MCLOUD_STORAGE_BACKBLAZE_KEYstringThe application key to use for Backblaze.
MCLOUD_STORAGE_PRIVACYstringPrivacy ACL for uploads, valid values are public-read or authenticated-read.
MCLOUD_STORAGE_PRIVACY_IMAGESstringPrivacy ACL for image uploads, valid values are inherit, public-read or authenticated-read.
MCLOUD_STORAGE_PRIVACY_VIDEOstringPrivacy ACL for video uploads, valid values are inherit, public-read or authenticated-read.
MCLOUD_STORAGE_PRIVACY_AUDIOstringPrivacy ACL for audio uploads, valid values are inherit, public-read or authenticated-read.
MCLOUD_STORAGE_PRIVACY_DOCSstringPrivacy ACL for document uploads, valid values are inherit, public-read or authenticated-read.
MCLOUD_STORAGE_PREFIXstringThe prefix for file upload paths.
MCLOUD_STORAGE_UPLOAD_IMAGESbooleanUpload image files to cloud storage.
MCLOUD_STORAGE_UPLOAD_VIDEOSbooleanUpload video files to cloud storage.
MCLOUD_STORAGE_UPLOAD_AUDIObooleanUpload audio files to cloud storage.
MCLOUD_STORAGE_UPLOAD_DOCUMENTSbooleanAllow non-media files to be uploaded to cloud storage.
MCLOUD_STORAGE_IGNORED_MIME_TYPESstringMIME types of files that should not be uploaded to cloud storage.
MCLOUD_STORAGE_CDN_BASEurlBase URL for CDN.
MCLOUD_STORAGE_DOC_CDN_BASEurlBase URL for document (non-media) CDN.
MCLOUD_STORAGE_CACHE_CONTROLstringDefault cache control for uploads.
MCLOUD_STORAGE_EXPIRESnumberCache expiration for uploaded files.
MCLOUD_STORAGE_DELETE_FROM_SERVERbooleanDelete from cloud storage when deleted from media library.
MCLOUD_STORAGE_DELETE_UPLOADSbooleanDelete uploads after uploaded to cloud storage.
MCLOUD_STORAGE_DISPLAY_BADGEbooleanDisplay cloud icon in media library for uploaded media.
MCLOUD_STORAGE_DISPLAY_MEDIA_LISTbooleanAdd extra column to media library in list view mode.
MCLOUD_STORAGE_USE_PRESIGNED_URLSbooleanUse pre-signed URLs.
MCLOUD_STORAGE_PRESIGNED_EXPIRATIONnumberNumber of minutes pre-signed URLs are valid for.
MCLOUD_STORAGE_USE_PRESIGNED_URLS_IMAGESbooleanUse pre-signed URLs for images. If MCLOUD_STORAGE_USE_PRESIGNED_URLS is enabled, this setting is ignored.
MCLOUD_STORAGE_PRESIGNED_EXPIRATION_IMAGESnumberNumber of minutes pre-signed URLs for images are valid for. If set to 0, then MCLOUD_STORAGE_PRESIGNED_EXPIRATION will be used.
MCLOUD_STORAGE_USE_PRESIGNED_URLS_VIDEObooleanUse pre-signed URLs for videos. If MCLOUD_STORAGE_USE_PRESIGNED_URLS is enabled, this setting is ignored.
MCLOUD_STORAGE_PRESIGNED_EXPIRATION_VIDEOnumberNumber of minutes pre-signed URLs for video are valid for. If set to 0, then MCLOUD_STORAGE_PRESIGNED_EXPIRATION will be used.
MCLOUD_STORAGE_USE_PRESIGNED_URLS_AUDIObooleanUse pre-signed URLs for audio. If MCLOUD_STORAGE_USE_PRESIGNED_URLS is enabled, this setting is ignored.
MCLOUD_STORAGE_PRESIGNED_EXPIRATION_AUDIOnumberNumber of minutes pre-signed URLs for audio are valid for. If set to 0, then MCLOUD_STORAGE_PRESIGNED_EXPIRATION will be used.
MCLOUD_STORAGE_USE_PRESIGNED_URLS_DOCSbooleanUse pre-signed URLs for documents. If MCLOUD_STORAGE_USE_PRESIGNED_URLS is enabled, this setting is ignored.
MCLOUD_STORAGE_PRESIGNED_EXPIRATION_DOCSnumberNumber of minutes pre-signed URLs for documents are valid for. If set to 0, then MCLOUD_STORAGE_PRESIGNED_EXPIRATION will be used.