mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
chore: change the frequency of auto-cert cron task
This commit is contained in:
parent
a63ed74eca
commit
705d71d3b7
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -54,7 +54,7 @@ func prog(state overseer.State) {
|
|||
}
|
||||
|
||||
s := gocron.NewScheduler(time.UTC)
|
||||
job, err := s.Every(1).Minute().SingletonMode().Do(cert.AutoObtain)
|
||||
job, err := s.Every(30).Minute().SingletonMode().Do(cert.AutoObtain)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("AutoCert Job: %v, Err: %v\n", job, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue