TrueChartsClone/charts/develop/nextcloud/templates/_configmap.tpl

26 lines
582 B
Smarty
Raw Normal View History

{{/* Define the configmap */}}
{{- define "nextcloud.configmap" -}}
{{- $hosts := "" }}
{{- if .Values.ingress.main.enabled }}
{{ range $index, $host := .Values.ingress.main.hosts }}
{{- if $index }}
2021-07-03 09:28:35 +00:00
{{ $hosts = ( printf "%v %v" $hosts $host.host ) }}
{{- else }}
2021-07-03 09:28:35 +00:00
{{ $hosts = ( printf "%s" $host.host ) }}
{{- end }}
{{ end }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloudconfig
data:
NEXTCLOUD_TRUSTED_DOMAINS: {{ $hosts | quote }}
{{- if .Values.Ingress.main.enabled }}
APACHE_DISABLE_REWRITE_IP: 1
{{- end }}
2021-07-02 21:59:17 +00:00
{{- end -}}