From 4f4a341b052afa380da0793a8fe7245c7eb9f33d Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Fri, 19 Aug 2022 01:27:55 -0400 Subject: [PATCH] Add client_max_body_size for Nextcloud --- roles/proxy/templates/server-nginx.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/proxy/templates/server-nginx.conf.j2 b/roles/proxy/templates/server-nginx.conf.j2 index fefaaa6..2bf74bb 100644 --- a/roles/proxy/templates/server-nginx.conf.j2 +++ b/roles/proxy/templates/server-nginx.conf.j2 @@ -26,6 +26,9 @@ server { {% else %} ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt; ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key; +{% endif %} +{% if item.client_max_body_size is defined %} + client_max_body_size {{ item.client_max_body_size }}; {% endif %} location / { {% if item.restrict is defined and item.restrict %}