Added maximum request body size limiting.

Fixes #19.
This commit is contained in:
2020-02-29 22:49:44 +05:00
parent 47672c586d
commit 5f58741159
3 changed files with 8 additions and 4 deletions

View File

@@ -26,7 +26,8 @@ package config
// HTTP describes HTTP server configuration.
type HTTP struct {
Address string `yaml:"address"`
Port string `yaml:"port"`
AllowInsecure bool `yaml:"allow_insecure"`
Address string `yaml:"address"`
Port string `yaml:"port"`
AllowInsecure bool `yaml:"allow_insecure"`
MaxBodySizeMegabytes string `yaml:"max_body_size_megabytes"`
}