Author SHA1 Message Date
mycodedoesnotcompile2 20e2679dbd Update api.go 2025-06-03 18:15:57 +00:00
mycodedoesnotcompile2 b21a4c7e31 Update api.go 2025-06-03 18:15:27 +00:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ COPY frontend/ ./
RUN pnpm build
# backend
FROM golang:1.26-alpine as backend
FROM golang:1.20-alpine as backend
WORKDIR /app
COPY . .
RUN rm -rf frontend
+2
View File
@@ -16,12 +16,14 @@ import (
)
func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine, fs http.FileSystem) {
// more Fiber options at https://docs.gofiber.io/api/fiber/
app := fiber.New(fiber.Config{
StreamRequestBody: true,
ServerHeader: "Katbox",
AppName: "Katbox",
DisableStartupMessage: true,
Views: engine,
Network: "tcp",
})
// static file server