NAS-123669 / 24.04 / Fix upload size limit on apache (nextcloud) (#1470)

* Fix upload size limit on apache (nextcloud)

* bump
This commit is contained in:
Stavros Kois
2023-08-30 14:21:13 +03:00
committed by GitHub
parent c665782f59
commit 87cd049301
3 changed files with 9 additions and 1 deletions

View File

@@ -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'

View File

@@ -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 }}

View File

@@ -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 }}