Compare commits

...

2 commits

Author SHA1 Message Date
Simon Vieille 5bc63d5304
customize html 2022-07-22 21:32:41 +02:00
Moritz Marquardt 12cb305a65 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 <momar@noreply.codeberg.org>
Co-committed-by: Moritz Marquardt <momar@noreply.codeberg.org>
2022-06-03 14:10:56 +02:00
2 changed files with 5 additions and 6 deletions

View file

@ -27,11 +27,12 @@
</h1>
<h5 class="text-center" style="max-width: 25em;">
Sorry, this page doesn't exist or is inaccessible for other reasons (%status).<br/>
We hope this is not our fault ;) - Make sure to check the <a href="https://docs.codeberg.org/codeberg-pages/troubleshooting/" target="_blank">troubleshooting section in the Docs</a>!
We hope this is not our fault ;) - Make sure to check the <a href="https://gitnet.fr/gitnet/fr/wiki/Pages-%2F-Troubleshooting" target="_blank">troubleshooting section in the Docs</a>!
</h5>
<small class="text-muted">
<img src="https://design.codeberg.org/logo-kit/icon.svg" class="align-top">
Static pages made easy - <a href="https://codeberg.page">Codeberg Pages</a>
<small class="text-muted text-center">
<img src="https://gitnet.fr/assets/img/logo.svg" class="align-top">
<br>
Static pages made easy - <a href="https://gitnet.fr/gitnet/fr/wiki/Pages-%2F-How-to">Gitnet Pages</a>
</small>
</body>
</html>

View file

@ -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,
}
}