Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 authored Aug 16, 2024
1 parent 36c4ae3 commit 99b375c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ func main() {
}
if os.Getenv("MINIO_SECURE") != "1" {
opts.Secure = false
opts.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
if os.Getenv("MINIO_NO_TLS_VERIFY") == "1" {
opts.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
}
}
s3Clients[name], err = minio.New(endpoint, opts)
Expand Down

0 comments on commit 99b375c

Please sign in to comment.