read config from file

This commit is contained in:
2026-04-15 14:22:05 -06:00
parent 58f9093406
commit 87d52aae58
3 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
c := cache.NewCache(cfg.MirrorRoot, cfg.MirrorURL)
c := cache.NewCache(cfg.CacheRoot, cfg.MirrorURL)
srv := &Server{cfg: cfg, c: c}
mux := http.NewServeMux()