fix minio
This commit is contained in:
parent
15d8bb4365
commit
9e466a2422
4 changed files with 15 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue