mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-04 17:48:35 +00:00
chore: bump http kit (#817)
* use new httpkit runner * refactor out last httpkit changes * fix timeout defaults * fix wrong time input - closes #819
This commit is contained in:
parent
77b4d594af
commit
2867a05c92
10 changed files with 121 additions and 67 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/ardanlabs/conf/v3"
|
||||
)
|
||||
|
@ -39,12 +40,12 @@ type DebugConf struct {
|
|||
}
|
||||
|
||||
type WebConfig struct {
|
||||
Port string `yaml:"port" conf:"default:7745"`
|
||||
Host string `yaml:"host"`
|
||||
MaxUploadSize int64 `yaml:"max_file_upload" conf:"default:10"`
|
||||
ReadTimeout int `yaml:"read_timeout" conf:"default:10"`
|
||||
WriteTimeout int `yaml:"write_timeout" conf:"default:10"`
|
||||
IdleTimeout int `yaml:"idle_timeout" conf:"default:30"`
|
||||
Port string `yaml:"port" conf:"default:7745"`
|
||||
Host string `yaml:"host"`
|
||||
MaxUploadSize int64 `yaml:"max_file_upload" conf:"default:10"`
|
||||
ReadTimeout time.Duration `yaml:"read_timeout" conf:"default:10s"`
|
||||
WriteTimeout time.Duration `yaml:"write_timeout" conf:"default:10s"`
|
||||
IdleTimeout time.Duration `yaml:"idle_timeout" conf:"default:30s"`
|
||||
}
|
||||
|
||||
// New parses the CLI/Config file and returns a Config struct. If the file argument is an empty string, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue