Add panic recovery and request size limit

This commit is contained in:
2026-03-05 06:32:26 +00:00
parent df6b677a15
commit 214e63b0c5
9 changed files with 754 additions and 13 deletions

View File

@@ -95,7 +95,8 @@ type AuthConfig struct {
// ServerConfig controls HTTP server values.
type ServerConfig struct {
Address string `yaml:"address"`
Address string `yaml:"address"`
MaxRequestBodySize int64 `yaml:"max_request_body_size"` // Maximum request body size in bytes (default: 10MB)
}
// ProviderEntry defines a named provider instance in the config file.