From e6cc5e5e1b71764c699d16a3e20121d81a622563 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sun, 8 Dec 2024 02:59:42 -0600 Subject: [PATCH] set client_max_body_size for entire server block --- nginx.conf.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf.template b/nginx.conf.template index 8dd809a..31acb2d 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -3,6 +3,8 @@ server { #access_log /var/log/nginx/host.access.log main; + client_max_body_size 100G; + # send all requests to the `/validate` endpoint for authorization auth_request /validate; @@ -40,6 +42,5 @@ server { dav_access user:rw group:rw all:r; dav_methods PUT; dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK; - client_max_body_size 100G; } }