diff --git a/cmd.go b/cmd.go index a54cff6..e801dd3 100644 --- a/cmd.go +++ b/cmd.go @@ -3,6 +3,7 @@ package main import ( "context" "crypto/subtle" + "crypto/tls" "fmt" "html/template" "log" @@ -181,8 +182,15 @@ var uiCmd = &cobra.Command{ } // API Client + var httpClient = &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: cfg.Server.UI.API.TLS.SkipVerify, + }, + }, + } apiClient := APIClient{voki.New( - http.DefaultClient, + httpClient, cfg.Server.UI.API.Host, cfg.Server.UI.API.Key, cfg.Server.UI.API.Port,