added mirrored repos to config

This commit is contained in:
2026-04-20 19:08:44 -06:00
parent 727e9f40af
commit 6fdf5a4a52
4 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -28,7 +28,7 @@ func main() {
log.Fatal(err)
}
c := cache.NewCache(cfg.CacheRoot, cfg.MirrorURL)
c := cache.NewCache(cfg.CacheRoot, cfg.MirrorURL, cfg.MirroredRepos)
srv := &Server{cfg: cfg, c: c}
mux := http.NewServeMux()
@@ -44,6 +44,7 @@ func main() {
Handler: mux,
}
log.Printf("serving pkgstash root: %v on port: %v", cfg.CacheRoot, cfg.Port)
log.Fatal(httpServe.ListenAndServe())
}