Files
authentik/internal/utils/web/server.go
2025-11-01 19:04:13 +01:00

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,
}
}