mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
add some configs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{- define "nextcloud.configs" -}}
|
||||
{{ $bytesGB := 1073741824 }}
|
||||
configmap:
|
||||
nextcloud-config:
|
||||
enabled: true
|
||||
data:
|
||||
opcache.ini: |
|
||||
opcache.memory_consumption={{ .Values.ncConfig.opCacheMemoryConsumption }}
|
||||
|
||||
php.ini: |
|
||||
max_execution_time={{ .Values.ncConfig.maxExecutionTime }}
|
||||
|
||||
limitrequestbody.conf: |
|
||||
LimitRequestBody {{ mul .Values.ncConfig.maxUploadLimit $bytesGB }}
|
||||
{{- end -}}
|
||||
@@ -7,6 +7,39 @@ persistence:
|
||||
nextcloud:
|
||||
nextcloud:
|
||||
mountPath: /var/www/html
|
||||
nc-config-opcache:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: nextcloud-config
|
||||
defaultMode: "0600"
|
||||
targetSelector:
|
||||
nextcloud:
|
||||
nextcloud:
|
||||
# z-99 is used to ensure that this file is loaded last
|
||||
mountPath: /usr/local/etc/php/conf.d/opcache-z-99.ini
|
||||
subPath: opcache.ini
|
||||
nc-config-php:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: nextcloud-config
|
||||
defaultMode: "0600"
|
||||
targetSelector:
|
||||
nextcloud:
|
||||
nextcloud:
|
||||
# z-99 is used to ensure that this file is loaded last
|
||||
mountPath: /usr/local/etc/php/conf.d/nextcloud-z-99.ini
|
||||
subPath: php.ini
|
||||
nc-config-limreqbody:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: nextcloud-config
|
||||
defaultMode: "0600"
|
||||
targetSelector:
|
||||
nextcloud:
|
||||
nextcloud:
|
||||
# https://github.com/nextcloud/docker/issues/1796
|
||||
mountPath: /etc/apache2/conf-enabled/limitrequestbody.conf
|
||||
subPath: limitrequestbody.conf
|
||||
|
||||
# config:
|
||||
# enabled: true
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "nextcloud.workload" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "nextcloud.configuration" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "nextcloud.configs" $ | fromYaml) -}}
|
||||
{{- if .Values.ncNetwork.certificateID }}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "nginx.workload" $ | fromYaml) -}}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user