Setting Up Minio
Connect Media Cloud to a self-hosted Minio bucket using its S3-compatible API, path-style endpoints and a public download policy.
Minio is a self-hosted, S3-compatible object storage server. Media Cloud connects to it with the S3 API, so you control the bucket, the endpoint and the credentials.
Before you start
You need:
- A running Minio server reachable over HTTPS.
- A bucket for Media Cloud.
- An access key and secret key.
- A bucket policy that allows public reads, or pre-signed URLs enabled in Media Cloud.
Step 1 – Create a bucket
Using the Minio console, create a bucket for Media Cloud. Using the mc client:
mc mb myminio/media
Step 2 – Allow public reads
Media Cloud serves media from public URLs by default. Allow anonymous downloads for the bucket:
mc anonymous set download myminio/media
If you need private media, keep the bucket private and enable Pre-Signed URL Settings.
Step 3 – Create credentials
Create an access key in the Minio console under Identity → Access Keys, or with mc admin user. Store the access key and secret key; the secret is only shown once.
Step 4 – Configure Media Cloud
- Go to Media Cloud → Settings → Cloud Storage.
- Set Storage Provider to Minio.
- Fill in the provider settings:
| Field | Value |
|---|---|
| Access Key | Minio access key |
| Secret | Minio secret key |
| Bucket | Bucket name |
| Region | Automatic, or Custom with the region your Minio server uses |
| Custom Region | Required when Region is Custom |
| Custom Endpoint | Your Minio server URL, for example https://minio.example.com |
| Path Style Endpoint | On |
- Turn on Enable Cloud Storage.
- Save and run Media Cloud → System Compatibility.
Upload handling
Minio supports the usual storage options:
- Upload Privacy ACL controls the ACL requested for new uploads. Leave it at Public unless you are using pre-signed URLs or Imgix.
- Cache Control and Content Expiration set the
Cache-ControlandExpiresmetadata. - Original Image Privacy ACL applies to the unscaled original when WordPress creates a big-image copy.
Direct uploads
Minio supports direct uploads. If you enable Direct Uploads, the Minio server must allow browser PUT requests from your site origin (CORS). If you cannot configure CORS, leave direct uploads disabled and upload through WordPress instead.
Troubleshooting
| Problem | Likely cause |
|---|---|
| Test upload returns 403 | The access key lacks write permission, or the bucket policy blocks anonymous reads. |
| Public file URLs return 403 | Anonymous download is not enabled for the bucket. |
Requests go to bucket.minio.example.com and fail | Path Style Endpoint is off. Turn it on. |
| Region errors | Set Region to Custom and enter the region configured on the server. |
| Direct uploads fail | The Minio server does not allow the site origin through CORS. |
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.