mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-10 04:27:49 +00:00
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
12cb305a65 |
1 changed files with 0 additions and 2 deletions
|
@ -18,12 +18,10 @@ func SetupServer(handler fasthttp.RequestHandler) *fasthttp.Server {
|
||||||
return &fasthttp.Server{
|
return &fasthttp.Server{
|
||||||
Handler: compressedHandler,
|
Handler: compressedHandler,
|
||||||
DisablePreParseMultipartForm: true,
|
DisablePreParseMultipartForm: true,
|
||||||
MaxRequestBodySize: 0,
|
|
||||||
NoDefaultServerHeader: true,
|
NoDefaultServerHeader: true,
|
||||||
NoDefaultDate: true,
|
NoDefaultDate: true,
|
||||||
ReadTimeout: 30 * time.Second, // needs to be this high for ACME certificates with ZeroSSL & HTTP-01 challenge
|
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!
|
Concurrency: 1024 * 32, // TODO: adjust bottlenecks for best performance with Gitea!
|
||||||
MaxConnsPerIP: 100,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue