mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
make certdb maintain go routine a own func
This commit is contained in:
parent
de439f9bec
commit
a0e0d2d335
2 changed files with 64 additions and 71 deletions
|
@ -109,6 +109,9 @@ func Serve(ctx *cli.Context) error {
|
|||
|
||||
certificates.SetupCertificates(mainDomainSuffix, dnsProvider, acmeConfig, acmeUseRateLimits, enableHTTPServer, challengeCache, keyDatabase)
|
||||
|
||||
// TODO: make it graceful
|
||||
go certificates.MaintainCertDB(mainDomainSuffix, dnsProvider, acmeUseRateLimits, keyDatabase)
|
||||
|
||||
if enableHTTPServer {
|
||||
go func() {
|
||||
err := httpServer.ListenAndServe("[::]:80")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue