Moved github PAT and storage path to env vars

This commit is contained in:
2026-03-30 22:02:39 +02:00
parent b1079efe58
commit bdf7d4f468
10 changed files with 35 additions and 32 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ func NewStaticHandler(storagePath string, siteMap map[string]config.SiteConfig)
return func(c fiber.Ctx) error {
site, ok := siteMap[c.Hostname()]
if !ok {
return c.SendStatus(fiber.StatusNotFound)
return c.Status(fiber.StatusNotFound).SendString("Site not found")
}
urlPath := filepath.Clean(c.Path())