fix: reduce lego timeout to 30s

This commit is contained in:
Claus Lohmar 2026-07-07 18:11:59 +01:00
parent 1705d1e32d
commit a3b31ed2ab

View file

@ -177,7 +177,7 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin
"-d", domain,
}
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, legoPath, args...)
cmd.Stdout = os.Stdout