diff --git a/backend/internal/api/v1/server.go b/backend/internal/api/v1/server.go index 2ddc60f..a638b8e 100644 --- a/backend/internal/api/v1/server.go +++ b/backend/internal/api/v1/server.go @@ -98,8 +98,11 @@ func SetAPIRouter(conf config.Config) *gin.Engine { // This is to implement graceful shutdown. func SetWebRouter(router *gin.Engine, conf config.Config) *http.Server { return &http.Server{ - Handler: router, - Addr: fmt.Sprintf("%s:%s", conf.GinHost, conf.GinPort), + Handler: router, + Addr: fmt.Sprintf("%s:%s", conf.GinHost, conf.GinPort), + IdleTimeout: 1 * time.Minute, + ReadTimeout: 5 * time.Second, + WriteTimeout: 10 * time.Second, } }