mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
suggestions from review
This commit is contained in:
parent
4d760d9a9d
commit
6e797b8115
8 changed files with 66 additions and 29 deletions
|
@ -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,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue