mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
wrap cert db and make sync gracefull
This commit is contained in:
parent
11fa729686
commit
de439f9bec
7 changed files with 95 additions and 14 deletions
|
@ -94,7 +94,7 @@ func Serve(ctx *cli.Context) error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("could not create database: %v", err)
|
||||
}
|
||||
defer keyDatabase.Sync() //nolint:errcheck // database has no close ... sync behave like it
|
||||
defer keyDatabase.Close() //nolint:errcheck // database has no close ... sync behave like it
|
||||
|
||||
listener = tls.NewListener(listener, certificates.TLSConfig(mainDomainSuffix,
|
||||
giteaRoot, giteaAPIToken, dnsProvider,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue