Connect Opndrive to MinIO

MinIO runs on your own infrastructure, so there is no region list to choose from and you supply the endpoint yourself. Anything the S3 API supports, Opndrive can use.

Step 1, complete

Provider

Selected
MinIOSelf-hosted object storageChange
2, current step

Add credentials

secret access key is hidden

Add the endpoint URL above

3, not started

Open your drive

Setting up MinIOOptional

1. Allow this site in CORS

Configure CORS with the MinIO client (mc) or through the MinIO Console under Buckets, then your bucket, then Summary and Access Policy.

2. Paste this policy

{
    "AllowedMethods": [
        "GET",
        "PUT",
        "POST",
        "DELETE",
        "HEAD"
    ],
    "AllowedOrigins": [
        "https://your-domain.com"
    ],
    "AllowedHeaders": [
        "*"
    ],
    "ExposeHeaders": [
        "ETag"
    ],
    "MaxAgeSeconds": 3000
}

Replace https://your-domain.com with the address you use Opndrive from.

3. Permissions the key needs

  • s3:GetObject
  • s3:PutObject
  • s3:DeleteObject
  • s3:ListBucket

Worth knowing

Your browser has to be able to reach the endpoint. A MinIO server on a private network will not work from the hosted app, so self-host Opndrive alongside it.

MinIO JavaScript API documentation
MinIO Browser and Web UI for Your Own Server