Environment Variables
For advanced WordPress development, Media Cloud allows you to set every plugin setting and option through environment variables or defines.
Every setting in Media Cloud can be set using environment variables. For example, if you are using Root’s Trellis and/or Bedrock, these variables would be defined in a .env
file located in your project’s root.
Articles in Environment Variables
-
Features Variables
These environment variables control which features are enabled or disabled.
-
Cloud Storage Variables
These environment variables control how Cloud Storage is configured and used. Variable Type Description MCLOUD_TOOL_ENABLED_STORAGE boolean Cloud storage is enabled. MCLOUD_STORAGE_PROVIDER string The cloud storage provider to use. Valid values: s3, google, do, minio, wasabi, other-s3 and backblaze. MCLOUD_STORAGE_S3_ACCESS_KEY string The access key for S3 and S3-compatible services. MCLOUD_STORAGE_S3_SECRET string …
-
Video Encoding Variables
Variable Type Description MCLOUD_TOOL_ENABLED_VIDEO_ENCODING boolean Enables/disables the video encoder tool. MEDIA_CLOUD_VIDEO_ENCODING_PROVIDER string Video encoding provider, valid values are mux. MEDIA_CLOUD_MUX_TOKEN_ID string The Mux API token ID. You can find, or create new keys, on the mux.com dashboard. MEDIA_CLOUD_MUX_TOKEN_SECRET string The Mux API token secret. You can …
-
Vision Variables
These variables control how Vision is configured and operates. Variable Type Description MCLOUD_TOOL_ENABLED_VISION boolean Vision is enabled. MCLOUD_VISION_PROVIDER string Which Vision provider to use. Valid values are: rekognition or google. MCLOUD_VISION_DETECT_LABELS boolean Detects instances of real-world labels within an image such as flower, tree, table, desk, etc. MCLOUD_VISION_DETECT_LABELS_TAX string The …
-
Direct Uploads Variables
These variables control how direct uploads work. Variable Type Description MCLOUD_TOOL_ENABLED_MEDIA_UPLOAD boolean Direct Upload is enabled. MCLOUD_DIRECT_UPLOADS_INTEGRATION boolean Integrated with the WordPress media library so that all uploads done through the library are direct uploads. MCLOUD_DIRECT_UPLOADS_UPLOAD_IMAGES boolean Enables direct uploads for image files. MCLOUD_DIRECT_UPLOADS_UPLOAD_VIDEOS boolean Enables direct uploads for video …
-
imgix Variables
These environment variables control imgix functionality. Variable Type Description MCLOUD_TOOL_ENABLED_IMGIX boolean Imgix is enabled. MCLOUD_IMGIX_DOMAINS url List of imgix domains to use. MCLOUD_IMGIX_SIGNING_KEY string The signing key for securing imgix URLs. MCLOUD_IMGIX_USE_HTTPS boolean Use HTTPS. MCLOUD_IMGIX_DEFAULT_QUALITY number Default quality for lossy images. MCLOUD_IMGIX_AUTO_FORMAT boolean Allow imgix to choose the …
-
Asset Variables
These environment variables control how Asset push/pull works. Variable Type Description MCLOUD_TOOL_ENABLED_ASSETS boolean Asset feature is enabled. MCLOUD_ASSETS_STORE_CSS boolean If enabled, Push mode is used to upload CSS assets to cloud storage. Disable for Pull mode. MCLOUD_ASSETS_STORE_JS boolean If enabled, Push mode is used to upload javascript assets to …
-
Crop Variables
These variables control how the crop tool works. Variable Type Description MCLOUD_TOOL_ENABLED_CROP boolean Crop tool is enabled. MCLOUD_CROP_QUALITY number The JPEG compression to use for cropped images. This will supercede the WordPress default. Ignored if using imgix.
-
Multisite Variables
These environment variables are specific to Multisite. Variable Type Description MCLOUD_NETWORK_MODE boolean When enabled, Media Cloud settings apply to all sites in the network. When disabled, each site has its own settings. MCLOUD_NETWORK_HIDE_BATCH boolean When enabled, batch processing tools are hidden from individual sites. MCLOUD_NETWORK_BROWSER_ALLOW_DELETING boolean When enabled, the …
-
Integrations Variables
These environment variables control how integration with other plugins work. Variable Type Description MCLOUD_WOO_COMMERCE_USE_PRESIGNED_URLS boolean Enable to generate signed URLs for downloadable products that will expire within a specified time period. MCLOUD_WOO_COMMERCE_PRESIGNED_EXPIRATION number The number of minutes the signed URL is valid for. MCLOUD_EDD_USE_PRESIGNED_URLS boolean Enable to generate signed URLs …
-
Debug Variables
These variables control debugging in Media Cloud. Variable Type Description MCLOUD_TOOL_ENABLED_DEBUGGING boolean Debugging is enabled. MCLOUD_DEBUG_LOGGING_LEVEL string The debugging level. Valid values are: none, info, warning, error. MCLOUD_DEBUG_MAX_DATABASE_ENTRIES number The maximum number of log entries to keep in the database.
-
Batch Processing Variables
These settings control how background tasks are run. Variable Type Description MCLOUD_TASKS_HTTP_CLIENT string Controls which HTTP client to use for background processing. Valid values are guzzle or wordpress. MCLOUD_TASKS_VERIFY_SSL string Determines if SSL is verified when making the remote connection for the background process. Valid values are: default, yes, no. …