forked from mirrors/homebox
feat: expose timeout variables (#622)
* expose timeout variables * formatting Former-commit-id: eeae790fe49b4a6be95b412ab5b3cf8968ec9cc1
This commit is contained in:
parent
e3ddc68eb2
commit
79be938531
7 changed files with 21 additions and 13 deletions
|
@ -146,6 +146,9 @@ func run(cfg *config.Config) error {
|
|||
app.server = server.NewServer(
|
||||
server.WithHost(app.conf.Web.Host),
|
||||
server.WithPort(app.conf.Web.Port),
|
||||
server.WithReadTimeout(app.conf.Web.ReadTimeout),
|
||||
server.WithWriteTimeout(app.conf.Web.WriteTimeout),
|
||||
server.WithIdleTimeout(app.conf.Web.IdleTimeout),
|
||||
)
|
||||
log.Info().Msgf("Starting HTTP Server on %s:%s", app.server.Host, app.server.Port)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue