Uploads over one megabyte get a 413 before the application ever sees them.
location /upload/ {
client_max_body_size 200m;
}
The directive works in http, server and location context, so the higher limit can sit on the upload path only and everything else keeps the small default. nginx compares the limit with the Content-Length header and answers 413 Request Entity Too Large immediately. The value 0 turns the check off, which I would avoid on a public site. PHP, Node or the backend can have its own limit, such as upload_max_filesize in PHP. Reload nginx after the change and retry the upload with a file just over the old limit.
Further reading: ngx_http_core_module: client_max_body_size
Going deeper: 🛜 Guide: AdGuard Home + Tailscale (Secure Split-Horizon DNS)