mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-11-24 09:54:22 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20e2679dbd | ||
|
|
b21a4c7e31 |
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ COPY frontend/ ./
|
|||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
# backend
|
# backend
|
||||||
FROM golang:1.26-alpine as backend
|
FROM golang:1.20-alpine as backend
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN rm -rf frontend
|
RUN rm -rf frontend
|
||||||
|
|||||||
+3
-1
@@ -16,12 +16,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine, fs http.FileSystem) {
|
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{
|
app := fiber.New(fiber.Config{
|
||||||
StreamRequestBody: true,
|
StreamRequestBody: true,
|
||||||
ServerHeader: "Katbox",
|
ServerHeader: "Katbox",
|
||||||
AppName: "Katbox",
|
AppName: "Katbox",
|
||||||
DisableStartupMessage: true,
|
DisableStartupMessage: true,
|
||||||
Views: engine,
|
Views: engine,
|
||||||
|
Network: "tcp",
|
||||||
})
|
})
|
||||||
|
|
||||||
// static file server
|
// static file server
|
||||||
@@ -48,4 +50,4 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
|||||||
log.Warn("Server shutdown Failed: ", err)
|
log.Warn("Server shutdown Failed: ", err)
|
||||||
}
|
}
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user