fix minio

This commit is contained in:
Suphonchai Phoonsawat 2025-03-27 14:38:51 +07:00
parent 15d8bb4365
commit 9e466a2422
4 changed files with 15 additions and 7 deletions

View file

@ -43,7 +43,9 @@ namespace BMA.EHR.Application.Repositories
var config = new AmazonS3Config
{
ServiceURL = _configuration["MinIO:Endpoint"],
ForcePathStyle = true
ForcePathStyle = true,
SignatureVersion = "V4", // รองรับ MinIO
AuthenticationRegion = "th-middle-rack-1" // บาง MinIO ใช้ region "us-east-1" โดย default
};
_s3Client = new AmazonS3Client(_configuration["MinIO:AccessKey"], _configuration["MinIO:SecretKey"], config);