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

View file

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