mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 17:10:30 +00:00
implement upload limit configuration
This commit is contained in:
parent
fe819d0374
commit
d7e589a10d
1 changed files with 3 additions and 2 deletions
|
@ -33,6 +33,7 @@ type SwaggerConf struct {
|
||||||
type WebConfig struct {
|
type WebConfig struct {
|
||||||
Port string `yaml:"port" conf:"default:7745"`
|
Port string `yaml:"port" conf:"default:7745"`
|
||||||
Host string `yaml:"host"`
|
Host string `yaml:"host"`
|
||||||
|
MaxUploadSize int64 `yaml:"max_file_upload" conf:"default:10"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig parses the CLI/Config file and returns a Config struct. If the file argument is an empty string, the
|
// NewConfig 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