chore: update main.go

This commit is contained in:
etwodev
2025-10-05 19:55:43 +01:00
parent ec5fa83a7d
commit 4830f994c1

View File

@@ -151,7 +151,7 @@ func request(client *http.Client, token, method, url string, body interface{}) (
// ------------------------------- // -------------------------------
func Deploy(cfg Config) error { func Deploy(cfg Config) error {
client := &http.Client{Timeout: 15 * time.Second} client := &http.Client{Timeout: 120 * time.Second}
if cfg.TLSSkipVerify { if cfg.TLSSkipVerify {
client.Transport = &http.Transport{ client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
@@ -206,7 +206,7 @@ func Deploy(cfg Config) error {
} }
func (s *Stack) Redeploy(cfg Config) error { func (s *Stack) Redeploy(cfg Config) error {
client := &http.Client{Timeout: 15 * time.Second} client := &http.Client{Timeout: 120 * time.Second}
if cfg.TLSSkipVerify { if cfg.TLSSkipVerify {
client.Transport = &http.Transport{ client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},