1
0
Fork 0

Merge branch v2.6 into v2.7

This commit is contained in:
kevinpollet 2022-05-04 10:20:46 +02:00
commit 619621f239
No known key found for this signature in database
GPG key ID: 8DA260C277649A5A
11 changed files with 258 additions and 18 deletions

View file

@ -538,7 +538,7 @@ func (p *Provider) addCertificateForDomain(domain types.Domain, certificate, key
// The second (RenewInterval) is the interval between renew attempts.
func getCertificateRenewDurations(certificatesDuration int) (time.Duration, time.Duration) {
switch {
case certificatesDuration >= 265*24: // >= 1 year
case certificatesDuration >= 365*24: // >= 1 year
return 4 * 30 * 24 * time.Hour, 7 * 24 * time.Hour // 4 month, 1 week
case certificatesDuration >= 3*30*24: // >= 90 days
return 30 * 24 * time.Hour, 24 * time.Hour // 30 days, 1 day