create giteaClient once

This commit is contained in:
6543 2022-06-02 15:57:51 +02:00
parent 0f662157ff
commit 5c508c5d13
2 changed files with 5 additions and 3 deletions

View file

@ -109,7 +109,8 @@ func Serve(ctx *cli.Context) error {
defer certDB.Close() //nolint:errcheck // database has no close ... sync behave like it
listener = tls.NewListener(listener, certificates.TLSConfig(mainDomainSuffix,
giteaRoot, giteaAPIToken, dnsProvider,
giteaClient,
dnsProvider,
acmeUseRateLimits,
keyCache, challengeCache, dnsLookupCache, canonicalDomainCache,
certDB))