Add MaxBodySize middleware and update .gitignore for config files

This commit is contained in:
2025-04-20 01:29:13 -05:00
parent 2d724763e1
commit bd455f1782
5 changed files with 45 additions and 1 deletions

View File

@ -38,6 +38,7 @@ var startCmd = &cobra.Command{
stack := middleware.CreateStack(
middleware.SecureHeaders,
middleware.Logging,
middleware.MaxBodySize(1024*1024), // 1MB size limit
authConfig.Middleware(),
)