mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 03:26:57 +00:00
Implement caching & limit concurrency
This commit is contained in:
parent
8ead10c82e
commit
203e230905
4 changed files with 62 additions and 49 deletions
2
main.go
2
main.go
|
@ -99,6 +99,8 @@ func main() {
|
|||
NoDefaultServerHeader: true,
|
||||
NoDefaultDate: true,
|
||||
ReadTimeout: 10 * time.Second,
|
||||
Concurrency: 1024 * 32, // TODO: adjust bottlenecks for best performance with Gitea!
|
||||
MaxConnsPerIP: 100,
|
||||
}).Serve(listener)
|
||||
if err != nil {
|
||||
fmt.Printf("Couldn't start server: %s\n", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue