check minio

This commit is contained in:
namhq1989 2023-01-08 20:41:25 +07:00
parent 0d30548e02
commit 3a4bb6d7b1
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ func Init(cfg Config) (*Client, error) {
client, err := min.New(cfg.Endpoint, &min.Options{ client, err := min.New(cfg.Endpoint, &min.Options{
Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""), Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""),
Secure: cfg.UseSSL, Secure: cfg.UseSSL,
Region: "ap-southeast-1",
}) })
// return if error // return if error