diff --git a/library/ix-dev/charts/nextcloud/Chart.yaml b/library/ix-dev/charts/nextcloud/Chart.yaml index 5a7e9ddcbe..97425702ff 100644 --- a/library/ix-dev/charts/nextcloud/Chart.yaml +++ b/library/ix-dev/charts/nextcloud/Chart.yaml @@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow annotations: title: Nextcloud type: application -version: 1.6.41 +version: 1.6.42 apiVersion: v2 appVersion: 27.0.2 kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/charts/nextcloud/templates/deployment.yaml b/library/ix-dev/charts/nextcloud/templates/deployment.yaml index 41451a1ab3..cac2e3a6d1 100644 --- a/library/ix-dev/charts/nextcloud/templates/deployment.yaml +++ b/library/ix-dev/charts/nextcloud/templates/deployment.yaml @@ -190,6 +190,10 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} # after the default php config file nextcloud provides. mountPath: /usr/local/etc/php/conf.d/nextcloud-z-99.ini subPath: php.ini + - name: nextcloud-configuration + # https://github.com/nextcloud/docker/issues/1796 + mountPath: /etc/apache2/conf-enabled/limitrequestbody.conf + subPath: limitrequestbody.conf {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - name: extrappvolume-{{ $index }} mountPath: {{ $hostPathConfiguration.mountPath }} diff --git a/library/ix-dev/charts/nextcloud/templates/nextcloud-configmap.yaml b/library/ix-dev/charts/nextcloud/templates/nextcloud-configmap.yaml index e1f093ce28..4f109409fe 100644 --- a/library/ix-dev/charts/nextcloud/templates/nextcloud-configmap.yaml +++ b/library/ix-dev/charts/nextcloud/templates/nextcloud-configmap.yaml @@ -1,3 +1,4 @@ +{{ $bytesGB := 1073741824 }} apiVersion: v1 kind: ConfigMap metadata: @@ -8,3 +9,6 @@ data: php.ini: | max_execution_time={{ .Values.nextcloud.max_execution_time }} + + limitrequestbody.conf: | + LimitRequestBody {{ mul .Values.nextcloud.max_upload_size $bytesGB }}