Improve handling of compression inclusion for objects (#19234)

This commit is contained in:
Dennis Marttinen
2024-03-11 11:55:34 +00:00
committed by GitHub
parent a25a8312d8
commit 6c964fede5
2 changed files with 26 additions and 5 deletions

View File

@@ -59,6 +59,14 @@ export MINIO_COMPRESSION_EXTENSIONS=".txt,.log,.csv,.json,.tar,.xml,.bin"
export MINIO_COMPRESSION_MIME_TYPES="text/*,application/json,application/xml"
```
> [!NOTE]
> To enable compression for all content when using environment variables, set either or both of the extensions and MIME types to `*` instead of an empty string:
> ```bash
> export MINIO_COMPRESSION_ENABLE="on"
> export MINIO_COMPRESSION_EXTENSIONS="*"
> export MINIO_COMPRESSION_MIME_TYPES="*"
> ```
### 3. Compression + Encryption
Combining encryption and compression is not safe in all setups.