Change MaxConnsPerIP to 0 to fix too many connections from HAProxy

This commit is contained in:
Moritz Marquardt 2022-05-14 18:12:16 +02:00
parent 2dbc66d052
commit ece105f565

View file

@ -23,7 +23,7 @@ func SetupServer(handler fasthttp.RequestHandler) *fasthttp.Server {
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,
MaxConnsPerIP: 0,
}
}