diff --git a/library/ix-dev/charts/nextcloud/templates/_configuration.tpl b/library/ix-dev/charts/nextcloud/templates/_configuration.tpl index a7c075549e..37d70b91ef 100644 --- a/library/ix-dev/charts/nextcloud/templates/_configuration.tpl +++ b/library/ix-dev/charts/nextcloud/templates/_configuration.tpl @@ -51,7 +51,9 @@ secret: {{- if .Values.ncNetwork.certificateID }} APACHE_DISABLE_REWRITE_IP: "1" OVERWRITEPROTOCOL: "https" - TRUSTED_PROXIES: {{ list "127.0.0.1" "localhost" .Values.ncConfig.host | mustUniq | join "," | quote }} + {{- $svcCidr := .Values.global.ixChartContext.kubernetes_config.service_cidr -}} + {{- $clusterCidr := .Values.global.ixChartContext.kubernetes_config.cluster_cidr -}} + TRUSTED_PROXIES: {{ list $svcCidr $clusterCidr "127.0.0.1" | mustUniq | join "," | quote }} {{- if and .Values.ncConfig.host .Values.ncNetwork.webPort }} {{- if .Values.ncConfig.nginx.useDifferentAccessPort }} OVERWRITEHOST: {{ .Values.ncConfig.host }} diff --git a/library/ix-dev/charts/nextcloud/templates/_persistence.tpl b/library/ix-dev/charts/nextcloud/templates/_persistence.tpl index 3a54443bc2..83c200e510 100644 --- a/library/ix-dev/charts/nextcloud/templates/_persistence.tpl +++ b/library/ix-dev/charts/nextcloud/templates/_persistence.tpl @@ -2,11 +2,11 @@ persistence: data: # TODO: enabled: true - type: emptyDir + type: pvc targetSelector: nextcloud: nextcloud: - mountPath: {{ .Values.ncConfig.dataDir }} + mountPath: /var/www/html # config: # enabled: true