From ee61a4a3cbcc16173f22081cf8dafa6fffdff3c6 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 7 Apr 2023 23:24:53 +0200 Subject: [PATCH] Remove upload limit --- .../roles/services/deploy/cloud/files/config/nginx.conf | 2 +- .../config/nginx-conf.d/cloud.wojciechkozlowski.eu.conf | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/playbooks/roles/services/deploy/cloud/files/config/nginx.conf b/playbooks/roles/services/deploy/cloud/files/config/nginx.conf index 48975b1..f27c194 100644 --- a/playbooks/roles/services/deploy/cloud/files/config/nginx.conf +++ b/playbooks/roles/services/deploy/cloud/files/config/nginx.conf @@ -49,7 +49,7 @@ http { #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; # set max upload size and increase upload timeout: - client_max_body_size 16G; + client_max_body_size 0; client_body_timeout 3600s; fastcgi_buffers 64 4K; diff --git a/playbooks/roles/services/deploy/rproxy/files/config/nginx-conf.d/cloud.wojciechkozlowski.eu.conf b/playbooks/roles/services/deploy/rproxy/files/config/nginx-conf.d/cloud.wojciechkozlowski.eu.conf index 5c0c780..1894f83 100644 --- a/playbooks/roles/services/deploy/rproxy/files/config/nginx-conf.d/cloud.wojciechkozlowski.eu.conf +++ b/playbooks/roles/services/deploy/rproxy/files/config/nginx-conf.d/cloud.wojciechkozlowski.eu.conf @@ -20,10 +20,9 @@ server { ssl_certificate_key /etc/letsencrypt/live/cloud.wojciechkozlowski.eu/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/cloud.wojciechkozlowski.eu/chain.pem; - # Values copied from - # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html and adjusted to - # 16G. - client_max_body_size 16G; + # Values copied and adjusted from + # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html. + client_max_body_size 0; client_body_timeout 3600s; client_body_buffer_size 512k;