From ff10f6c5eb4d3105407a01f0e505fa0053b9b95a Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Thu, 9 May 2024 10:47:10 +0200 Subject: [PATCH] raise upload limit --- web/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app.go b/web/app.go index 695f5f9..692069f 100644 --- a/web/app.go +++ b/web/app.go @@ -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)