Infra.BlobStorage (1.0.0)
Published 2026-10-10 12:56:00 +02:00 by ochekroun
Installation
dotnet nuget add source --name ochekroun --username your_username --password your_token dotnet add package --source ochekroun --version 1.0.0 Infra.BlobStorageAbout this package
File-system-style blob storage abstraction backed by S3-compatible MinIO storage.
Infra.BlobStorage
Infra.BlobStorage provides a file-system-style abstraction over S3-compatible MinIO storage.
It supports:
- asynchronous blob and logical-directory operations;
- dependency-injection registration through the standard .NET configuration pipeline;
- public blob URLs based on an external reverse-proxy URL;
- private access through time-limited presigned URLs;
- resource uploads, ZIP expansion, and directory downloads.
Registration
services.AddS3MinioBlobStorage(configuration.GetSection("S3"));
Example configuration for a public bucket:
{
"S3": {
"Endpoint": "s3.example.com",
"UseSsl": true,
"BucketName": "cdn",
"VirtualContainer": "application",
"AccessMode": "Public",
"PublicBaseUrl": "https://cdn.example.com/application"
}
}
Provide AccessKey and SecretKey through User Secrets, environment variables, or another secure .NET configuration provider. For environment variables, use S3__AccessKey and S3__SecretKey.
For private storage, set AccessMode to Private and configure PresignedUrlLifetime.
Dependencies
Details
2026-10-10 12:56:00 +02:00
Assets (2)
Versions (1)
View all
NuGet
2
Olivier Chekroun
26 KiB
infra.blobstorage.nuspec
830 B
1.0.0
2026-10-10