From 1b2d3aafc45a206fe74842cba26b8d5a2e319b93 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Fri, 19 Apr 2024 12:08:03 +0200 Subject: [PATCH] fix(mycloud-nextcloud): tune --- mycloud-nextcloud/templates/release.yaml | 15 ++++++++++++--- mycloud-nextcloud/values.yaml | 9 +++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/mycloud-nextcloud/templates/release.yaml b/mycloud-nextcloud/templates/release.yaml index 2a4735d..f3406dd 100644 --- a/mycloud-nextcloud/templates/release.yaml +++ b/mycloud-nextcloud/templates/release.yaml @@ -10,9 +10,6 @@ spec: kind: HelmRepository name: "nextcloud" chart: "nextcloud" - # TODO delete later - # https://codeberg.org/wrenix/flux-charts/issues/6 - reconcileStrategy: "Revision" install: {{- toYaml .Values.commons.helm.release.install | nindent 4 }} test: @@ -66,6 +63,12 @@ spec: 'skeletondirectory' => '', 'lost_password_link' => 'https://{{ .Values.commons.auth.host | default (printf "auth.%s" .Values.commons.ingress.domain) }}/if/flow/default-recovery-flow/', ); + custom.config.php: |- + {{ .Values.default.language | squote }}, + 'default_phone_region' => {{ .Values.default.phoneRegion | squote }}, + ); {{- if or .Values.commons.persistence.hostPath.enabled @@ -90,6 +93,12 @@ spec: secretKeyRef: name: {{ .Release.Name }}-auth-authentik-application key: clientSecret + - name: "NEXTCLOUD_MEMORY_LIMIT" + value: "{{ .Values.limits.memory }}" + - name: "PHP_MEMORY_LIMIT" + value: "{{ .Values.limits.memory }}" + - name: "PHP_UPLOAD_LIMIT" + value: "{{ .Values.limits.upload }}" hooks: # docu for theming: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/theming.html#configure-theming-through-cli diff --git a/mycloud-nextcloud/values.yaml b/mycloud-nextcloud/values.yaml index 79d76fc..53fee2c 100644 --- a/mycloud-nextcloud/values.yaml +++ b/mycloud-nextcloud/values.yaml @@ -117,6 +117,15 @@ theme: # -- set theme color in nextcloud color: + +default: + language: "en" + phoneRegion: "GB" + +limits: + memory: "512M" + upload: "2G" + # -- default quota for an user quota: