更新依赖

This commit is contained in:
dragon
2025-11-14 17:28:51 +08:00
parent 4ee8f4ed69
commit d67dbf88ae
7 changed files with 62 additions and 10 deletions

View File

@@ -16,7 +16,6 @@ import (
"gopkg.d7z.net/gitea-pages/pkg/core"
"gopkg.d7z.net/gitea-pages/pkg/filters"
"gopkg.d7z.net/middleware/kv"
"gopkg.d7z.net/middleware/tools"
)
var portExp = regexp.MustCompile(`:\d+$`)
@@ -42,9 +41,10 @@ func NewPageServer(
errorHandler func(w http.ResponseWriter, r *http.Request, err error),
) *Server {
svcMeta := core.NewServerMeta(client, backend, domain, cache, cacheTTL)
cfgDB := db.Child("config")
pageMeta := core.NewPageDomain(svcMeta,
core.NewDomainAlias(tools.NewPrefixKV(db, "config/alias")),
tools.NewPrefixKV(db, "config/pages"),
core.NewDomainAlias(cfgDB.Child("alias")),
cfgDB.Child("pages"),
domain, defaultBranch)
c, err := lru.New[string, glob.Glob](256)
if err != nil {