fix timeouts

This commit is contained in:
speatzle 2024-05-28 17:58:01 +02:00
parent cd04c2d16e
commit 3c174540df

View file

@ -104,8 +104,8 @@ func Start(_conf config.Config, tmplFS embed.FS, staticFS embed.FS, migrationsFS
server := &http.Server{ server := &http.Server{
Addr: conf.Server.Address, Addr: conf.Server.Address,
Handler: mux, Handler: mux,
ReadTimeout: 10 * time.Second, ReadTimeout: time.Hour,
WriteTimeout: 10 * time.Second, WriteTimeout: time.Hour,
IdleTimeout: 30 * time.Second, IdleTimeout: 30 * time.Second,
ReadHeaderTimeout: 10 * time.Second, ReadHeaderTimeout: 10 * time.Second,
} }