From d7e589a10d3c89abbf2734475087de710e3f0654 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 24 Sep 2022 11:14:24 -0800 Subject: [PATCH] implement upload limit configuration --- backend/internal/config/conf.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/internal/config/conf.go b/backend/internal/config/conf.go index c6493f5..7d63ea8 100644 --- a/backend/internal/config/conf.go +++ b/backend/internal/config/conf.go @@ -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