From f34ca07ddaeb9465f4224f93bf730b837a39f21d Mon Sep 17 00:00:00 2001 From: Alex Borisov <79996669747@ya.ru> Date: Tue, 19 Mar 2024 23:40:56 +0300 Subject: [PATCH] Client vars fix: - USE_SSL - PORT --- run.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.go b/run.go index 7d660e7..6651e59 100644 --- a/run.go +++ b/run.go @@ -19,7 +19,12 @@ func main() { accessKeyID, secretAccessKey, bucketName, endpoint, port, ssl := getEnv() // Initialize MinIO client - minioClient, err := minio.New(endpoint, accessKeyID, secretAccessKey, ssl) + minioClient, err := minio.New({ + endPoint: endpoint, + port: port + accessKey: accessKeyID, + secretKey: secretAccessKey, + useSSL: ssl) if err != nil { log.Fatal(err) }