Update oss_service.go
This commit is contained in:
@@ -177,9 +177,10 @@ func newS3OSS(cfg *models.OssApi) (OSSProvider, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client, err := minio.New(endpoint, &minio.Options{
|
client, err := minio.New(endpoint, &minio.Options{
|
||||||
Creds: credentials.NewStaticV4(cfg.AccessKeyID, cfg.AccessKeySecret, ""),
|
Creds: credentials.NewStaticV4(cfg.AccessKeyID, cfg.AccessKeySecret, ""),
|
||||||
Secure: useSSL,
|
Secure: useSSL,
|
||||||
Region: cfg.Region,
|
Region: cfg.Region,
|
||||||
|
BucketLookup: minio.BucketLookupPath,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error creando cliente S3/MinIO: %w", err)
|
return nil, fmt.Errorf("error creando cliente S3/MinIO: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user