Skip to content

Commit b7bcab2

Browse files
authored
fest(nginx): large file upload tuning as configuration #753
fix #714 Signed-off-by: antoinetran <antoinetran@users.noreply.github.com>
1 parent 9edf8e9 commit b7bcab2

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 7.0.0
3+
version: 7.0.1
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 31.0.7
66
description: A file sharing server that puts the control and security of your own data back into your hands.

charts/nextcloud/files/nginx.config.tpl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ server {
4040
{{- end }}
4141
{{- end }}
4242

43-
# set max upload size and increase upload timeout:
44-
client_max_body_size 512M;
45-
client_body_timeout 300s;
46-
fastcgi_buffers 64 4K;
43+
{{- .Values.nginx.config.serverBlockCustom | nindent 4 }}
4744

4845
# Enable gzip but do not remove ETag headers
4946
gzip on;

charts/nextcloud/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
## Official nextcloud image version
21
## ref: https://hub.docker.com/r/library/nextcloud/tags/
32
##
43
image:
@@ -352,6 +351,14 @@ nginx:
352351
"X-Robots-Tag": "noindex, nofollow"
353352
"X-XSS-Protection": "1; mode=block"
354353

354+
# Added in server block of default config.
355+
serverBlockCustom: |
356+
# set max upload size
357+
client_max_body_size 10G;
358+
client_body_timeout 300s;
359+
fastcgi_buffers 64 4K;
360+
fastcgi_read_timeout 3600s;
361+
355362
custom:
356363
# custom: |-
357364
# worker_processes 1;..

0 commit comments

Comments
 (0)