mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
pass down acme config
This commit is contained in:
parent
6e797b8115
commit
7401846261
3 changed files with 21 additions and 30 deletions
|
@ -22,16 +22,5 @@ func CreateAcmeClient(cfg config.ACMEConfig, enableHTTPServer bool, challengeCac
|
|||
return nil, fmt.Errorf("%w: ACME_EAB_KID also needs ACME_EAB_HMAC to be set", ErrAcmeMissConfig)
|
||||
}
|
||||
|
||||
return certificates.NewAcmeClient(
|
||||
cfg.AccountConfigFile,
|
||||
cfg.APIEndpoint,
|
||||
cfg.Email,
|
||||
cfg.EAB_HMAC,
|
||||
cfg.EAB_KID,
|
||||
cfg.DNSProvider,
|
||||
cfg.AcceptTerms,
|
||||
enableHTTPServer,
|
||||
cfg.UseRateLimits,
|
||||
challengeCache,
|
||||
)
|
||||
return certificates.NewAcmeClient(cfg, enableHTTPServer, challengeCache)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue