From c805daa0b04464d8d8ef0f8fbae1f2a901d39c03 Mon Sep 17 00:00:00 2001 From: antoinetran Date: Mon, 24 Mar 2025 16:45:05 +0100 Subject: [PATCH 1/2] Fix #714: large file upload tuning as configuration Signed-off-by: antoinetran --- charts/nextcloud/files/nginx.config.tpl | 5 +---- charts/nextcloud/values.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/nextcloud/files/nginx.config.tpl b/charts/nextcloud/files/nginx.config.tpl index 65b59b08..768c4c2f 100644 --- a/charts/nextcloud/files/nginx.config.tpl +++ b/charts/nextcloud/files/nginx.config.tpl @@ -40,10 +40,7 @@ server { {{- end }} {{- end }} - # set max upload size and increase upload timeout: - client_max_body_size 512M; - client_body_timeout 300s; - fastcgi_buffers 64 4K; + {{- .Values.nginx.config.serverBlockCustom | nindent 4 }} # Enable gzip but do not remove ETag headers gzip on; diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 931d287c..9db238bd 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -1,4 +1,3 @@ -## Official nextcloud image version ## ref: https://hub.docker.com/r/library/nextcloud/tags/ ## image: @@ -352,6 +351,14 @@ nginx: "X-Robots-Tag": "noindex, nofollow" "X-XSS-Protection": "1; mode=block" + # Added in server block of default config. + serverBlockCustom: | + # set max upload size + client_max_body_size 10G; + client_body_timeout 300s; + fastcgi_buffers 64 4K; + fastcgi_read_timeout 3600s; + custom: # custom: |- # worker_processes 1;.. From 73357e5bfb85be134a84a18facf5e03e842fe582 Mon Sep 17 00:00:00 2001 From: antoinetran Date: Wed, 26 Mar 2025 15:26:51 +0100 Subject: [PATCH 2/2] Chart version increase Signed-off-by: antoinetran --- charts/nextcloud/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 147f8d4b..615eb0a6 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 7.0.0 +version: 7.0.1 # renovate: image=docker.io/library/nextcloud appVersion: 31.0.7 description: A file sharing server that puts the control and security of your own data back into your hands.