mirror of
https://github.com/goauthentik/authentik
synced 2026-05-09 08:32:47 +02:00
18 lines
344 B
Go
18 lines
344 B
Go
package web
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
func Server(h http.Handler) *http.Server {
|
|
return &http.Server{
|
|
Handler: h,
|
|
ReadHeaderTimeout: 5 * time.Second,
|
|
ReadTimeout: 30 * time.Second,
|
|
WriteTimeout: 60 * time.Second,
|
|
IdleTimeout: 120 * time.Second,
|
|
MaxHeaderBytes: http.DefaultMaxHeaderBytes,
|
|
}
|
|
}
|