fix: reduce lego timeout to 30s
This commit is contained in:
parent
1705d1e32d
commit
a3b31ed2ab
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin
|
||||||
"-d", domain,
|
"-d", domain,
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
cmd := exec.CommandContext(ctx, legoPath, args...)
|
cmd := exec.CommandContext(ctx, legoPath, args...)
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue