add comment

This commit is contained in:
crapStone 2024-05-26 16:53:21 +02:00
parent d980cd4e57
commit 8590f50d31
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8

View file

@ -37,6 +37,7 @@ func TLSConfig(mainDomainSuffix string,
noDNS01 bool, noDNS01 bool,
rawDomain string, rawDomain string,
) *tls.Config { ) *tls.Config {
// every cert is at most 24h in the cache and 7 days before expiry the cert is renewed
keyCache := expirable.NewLRU[string, *tls.Certificate](32, nil, 24*time.Hour) keyCache := expirable.NewLRU[string, *tls.Certificate](32, nil, 24*time.Hour)
return &tls.Config{ return &tls.Config{