Audit changes.

This commit is contained in:
jdl
2026-06-13 15:06:14 +02:00
parent fe5f26ed70
commit 528e67ea61
2 changed files with 10 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import (
"log"
"net/http"
"os"
"time"
"git.crumpington.com/lib/go/webutil"
)
@@ -30,8 +31,12 @@ func Main() {
}
srv := &http.Server{
Addr: conf.ListenAddr,
Handler: app.Handler(),
Addr: conf.ListenAddr,
Handler: app.Handler(),
ReadHeaderTimeout: 30 * time.Second,
ReadTimeout: 60 * time.Second,
WriteTimeout: 120 * time.Second,
IdleTimeout: 180 * time.Second,
}
log.Fatal(webutil.ListenAndServe(srv))