Skip to main content
NextcloudAIO
NextcloudAIO Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (11)

Tuning WebDAV Chunked Uploads Behind Caddy & NGINX

Eliminate 413 Request Entity Too Large and 504 timeouts on 16-32 GB studio video and CAD sync uploads.

APACHE_PORT=11000 · 10 MB WebDAV chunks · Buffering OFF

Tuning WebDAV Chunked Uploads Behind Caddy & NGINX
Telemetry verified 2026-11-15 by TeamDrive Storage.

Preventing Reverse Proxy Disk Buffering on 16 GB Files

Nextcloud desktop clients split large files into 10 MB WebDAV chunks and reassemble them inside the Apache container. If NGINX enables proxy_request_buffering on, large parallel uploads fill /var/cache/nginx and trigger 504 Gateway Timeouts.

Matching NEXTCLOUD_UPLOAD_LIMIT & php-custom.ini

Set client_max_body_size 0 and proxy_request_buffering off in NGINX (Caddy disables request buffering automatically), while aligning NEXTCLOUD_UPLOAD_LIMIT=16G and NEXTCLOUD_MAX_TIME=3600 in docker-compose.yml.

Measured Thresholds & Configuration

Proxy SettingNGINX ValueCaddy ValuePurpose
Max Body Sizeclient_max_body_size 0Default unlimitedAllow 16-32 GB streams
Request Bufferingproxy_request_buffering offNative streamingPrevent proxy disk exhaustion
Read Timeoutproxy_read_timeout 3600sDefault long streamAllow chunk assembly
APACHE_PORT=11000 · 10 MB WebDAV chunks · Buffering OFF InterServer ($6/TB)UltaHost VDS ($37.50)