From af296a1e3a380955b4850d00aa75be668aaed647 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 4 Nov 2022 11:02:04 +0100 Subject: [PATCH] Increase upload limits for pod-cloud --- .../nginx-conf.d/cloud.wojciechkozlowski.eu.conf | 6 ++++++ .../yggdrasil/home/pod-cloud/.config/pod-cloud/nginx.conf | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/playbooks/filesystem/common/var/lib/_hostname/home/pod-_rproxy/.config/pod-_rproxy/nginx-conf.d/cloud.wojciechkozlowski.eu.conf b/playbooks/filesystem/common/var/lib/_hostname/home/pod-_rproxy/.config/pod-_rproxy/nginx-conf.d/cloud.wojciechkozlowski.eu.conf index 7631881..f7a6d7c 100644 --- a/playbooks/filesystem/common/var/lib/_hostname/home/pod-_rproxy/.config/pod-_rproxy/nginx-conf.d/cloud.wojciechkozlowski.eu.conf +++ b/playbooks/filesystem/common/var/lib/_hostname/home/pod-_rproxy/.config/pod-_rproxy/nginx-conf.d/cloud.wojciechkozlowski.eu.conf @@ -20,6 +20,12 @@ 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; + client_body_timeout 3600s; + # Redirect rules copied from # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html. location ^~ /.well-known { diff --git a/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-cloud/.config/pod-cloud/nginx.conf b/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-cloud/.config/pod-cloud/nginx.conf index 1738c5f..48975b1 100644 --- a/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-cloud/.config/pod-cloud/nginx.conf +++ b/playbooks/filesystem/yggdrasil/var/lib/yggdrasil/home/pod-cloud/.config/pod-cloud/nginx.conf @@ -49,8 +49,8 @@ http { #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; # set max upload size and increase upload timeout: - client_max_body_size 512M; - client_body_timeout 300s; + client_max_body_size 16G; + client_body_timeout 3600s; fastcgi_buffers 64 4K; # Enable gzip but do not remove ETag headers