Skip to content
Media CloudDocs
Happy HolidaysSave 20% with codeValid through December 31Shop the sale
Setting Up Minio
On this page

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.

3 min read·3 tags

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

  1. Go to Media Cloud → Settings → Cloud Storage.
  2. Set Storage Provider to Minio.
  3. Fill in the provider settings:
FieldValue
Access KeyMinio access key
SecretMinio secret key
BucketBucket name
RegionAutomatic, or Custom with the region your Minio server uses
Custom RegionRequired when Region is Custom
Custom EndpointYour Minio server URL, for example https://minio.example.com
Path Style EndpointOn
  1. Turn on Enable Cloud Storage.
  2. 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-Control and Expires metadata.
  • Original Image Privacy ACL applies to the unscaled original when WordPress creates a big-image copy.

See Upload Handling Settings.

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

ProblemLikely cause
Test upload returns 403The access key lacks write permission, or the bucket policy blocks anonymous reads.
Public file URLs return 403Anonymous download is not enabled for the bucket.
Requests go to bucket.minio.example.com and failPath Style Endpoint is off. Turn it on.
Region errorsSet Region to Custom and enter the region configured on the server.
Direct uploads failThe 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.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →