suggestions from review

This commit is contained in:
crapStone 2023-11-17 23:17:12 +01:00
parent 4d760d9a9d
commit 6e797b8115
No known key found for this signature in database
GPG key ID: D74B82E7CDD863FE
8 changed files with 66 additions and 29 deletions

View file

@ -55,7 +55,7 @@ func Serve(ctx *cli.Context) error {
cfg.Server.MainDomain = "." + cfg.Server.MainDomain
}
if len(cfg.Server.DefaultBranches) == 0 {
if len(cfg.Server.PagesBranches) == 0 {
return fmt.Errorf("no default branches set (PAGES_BRANCHES)")
}
@ -103,7 +103,7 @@ func Serve(ctx *cli.Context) error {
cfg.Server.MainDomain,
giteaClient,
acmeClient,
cfg.Server.DefaultBranches[0],
cfg.Server.PagesBranches[0],
keyCache, challengeCache, dnsLookupCache, canonicalDomainCache,
certDB,
))