diff --git a/docs/configuration/storage-config.md b/docs/configuration/storage-config.md index e531870a281..916480dad63 100644 --- a/docs/configuration/storage-config.md +++ b/docs/configuration/storage-config.md @@ -90,7 +90,7 @@ The Google Cloud Storage flavor (`gcs`) turns off multi-object delete requests a *MinIO flavor* -The MinIO flavor (`minio`) forces path-style access. +The MinIO flavor (`minio`) overrides the `region` parameter to `minio` and forces path-style access. Example of a storage configuration for Google Cloud Storage in YAML format: diff --git a/quickwit/quickwit-config/src/storage_config.rs b/quickwit/quickwit-config/src/storage_config.rs index 503a660fabf..dd5729e8f66 100644 --- a/quickwit/quickwit-config/src/storage_config.rs +++ b/quickwit/quickwit-config/src/storage_config.rs @@ -347,6 +347,7 @@ impl S3StorageConfig { self.disable_multipart_upload = true; } Some(StorageBackendFlavor::MinIO) => { + self.region = Some("minio".to_string()); self.force_path_style_access = true; } _ => {} @@ -497,6 +498,7 @@ mod tests { assert!(gcs_storage_config.disable_multipart_upload); let minio_storage_config = storage_configs[3].as_s3().unwrap(); + assert_eq!(minio_storage_config.region, Some("minio".to_string())); assert!(minio_storage_config.force_path_style_access); }