raise upload limit

This commit is contained in:
Niko Abeler 2024-05-09 10:47:10 +02:00
parent bc7b146e91
commit ff10f6c5eb
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ func NewWebApp(
webmentionService *app.WebmentionService,
interactionRepo repository.InteractionRepository,
) *WebApp {
app := fiber.New()
app := fiber.New(fiber.Config{
BodyLimit: 50 * 1024 * 1024, // 50MB in bytes
})
app.Use(middleware.NewUserMiddleware(authorService).Handle)
indexHandler := NewIndexHandler(entryService, siteConfigService)