From b2ca88805069700e59c7bca71e3aecd91c783e72 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Sat, 14 May 2022 22:29:54 +0200 Subject: [PATCH] Change MaxConnsPerIP to 0 to fix too many connections from HAProxy (#77) Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/77 Reviewed-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: Moritz Marquardt Co-committed-by: Moritz Marquardt --- server/setup.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/setup.go b/server/setup.go index 67c1c42..c186222 100644 --- a/server/setup.go +++ b/server/setup.go @@ -18,12 +18,10 @@ func SetupServer(handler fasthttp.RequestHandler) *fasthttp.Server { return &fasthttp.Server{ Handler: compressedHandler, DisablePreParseMultipartForm: true, - MaxRequestBodySize: 0, NoDefaultServerHeader: true, NoDefaultDate: true, ReadTimeout: 30 * time.Second, // needs to be this high for ACME certificates with ZeroSSL & HTTP-01 challenge Concurrency: 1024 * 32, // TODO: adjust bottlenecks for best performance with Gitea! - MaxConnsPerIP: 100, } }