feat(medusa): Add streaming to Minio fileservice (#1619)

This commit is contained in:
Philip Korsholm
2022-07-10 12:34:28 +02:00
committed by GitHub
parent 9fa4238ee4
commit 812ba65d8f
5 changed files with 138 additions and 40 deletions
+22
View File
@@ -12,5 +12,27 @@ Learn more about how you can use this plugin in the [documentation](https://docs
bucket: "test",
access_key_id: "YOUR-ACCESS-KEY",
secret_access_key: "YOUR-SECRET-KEY",
// private bucket configuration
private_bucket: 'private-bucket',
private_access_key_id: "YOUR-ACCESS-KEY",
private_secret_access_key: "YOUR-SECRET-KEY",
}
```
Optionally a `download_url_duration` option can be specified to change the valid duration of presigned download links. The duration is configured in seconds. (Default = 60 seconds)
## Configuring a private bucket in Minio
Certain operations in Medusa such as data import and export require a separate, protected bucket. The plugin will raise an error if operations used for imports and exports are invoked without the correct setup.
Configuring Minio for requires configuration of one additional option: `private_bucket` which refers to the name given to the protected bucket in Minio.
Separate credentials can, optionally, be used to access the private bucket by configuring the following options:
```
private_access_key_id: "YOUR-ACCESS-KEY",
private_secret_access_key: "YOUR-SECRET-KEY",
```
If no separate access key is given the same access key will be used for both the `bucket` and the `private_bucket`.