Limiting file upload sizes
Caddy allows you to limit file uploads to a maximum size to prevent abuse
Updated
To limit file upload sizes, use the request_body directive from Caddy in your app's Caddy routes.
request_body {
max_size 10MB
}
# Use the default Caddy routes from Hatchbox
%{default}If the body is larger than the max size, Caddy will return a 413 Content Too Large response.