Audit changes.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user