implement upload limit configuration

This commit is contained in:
Hayden 2022-09-24 11:14:24 -08:00
parent fe819d0374
commit d7e589a10d

View file

@ -31,8 +31,9 @@ type SwaggerConf struct {
}
type WebConfig struct {
Port string `yaml:"port" conf:"default:7745"`
Host string `yaml:"host"`
Port string `yaml:"port" conf:"default:7745"`
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