fix(mycloud-nextcloud): make imaginary optional

This commit is contained in:
WrenIX 2024-08-17 15:46:39 +02:00
parent ab747f302d
commit 1fefa2bb82
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 13 additions and 1 deletions

View file

@ -50,8 +50,10 @@ spec:
name: {{ .Values.commons.mail.username | quote }}
password: {{ .Values.commons.mail.password | quote }}
{{- if .Values.imaginary.enabled }}
defaultConfigs:
imaginary.config.php: true
imaginary.config.php: true
{{- end }}
configs:
proxy.config.php: |-
<?php
@ -76,6 +78,7 @@ spec:
'default_language' => {{ .Values.default.language | squote }},
'default_phone_region' => {{ .Values.default.phoneRegion | squote }},
);
{{- if .Values.imaginary.enabled }}
reviews.config.php: |-
<?php
$CONFIG = array(
@ -86,6 +89,10 @@ spec:
'OC\Preview\OpenDocument',
),
);
{{- end }}
{{- with .Values.config }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if or
.Values.commons.persistence.hostPath.enabled

View file

@ -136,6 +136,11 @@ limits:
# -- default quota for an user
quota:
imaginary:
enabled: true
config: {}
apps:
checksum:
enabled: true