* reverse useless changes (+1 squashed commits) Squashed commits: [fc6a76660] bump version (+19 squashed commit) Squashed commit: [ef82c37d7] trry a more... direct... script [feffd5fb8] try moving config injector to nextcloud container [9f89377fd] don't create folder and leave it at that [d00abcd3f] create dir of not exists [2b95c9277] try more [b28ff0f57] try yet another solution [b5b65ac6d] try this [744bc21af] slightly different [d3b3ec75f] fix mistake [8c4b311af] move to command [43a9f0116] try one line scripting [5e8ff9f2b] add some verbosity [a7c13abc6] try adding extra tooling to deal with the config [abdb26807] mode 777 [938651c7b] add subpath [810858849] disable readonly on configmap mount [8b5a48d65] usefilename as mountpath [3609d1198] fix this [99d115d97] fix: adds an override nextcloud config to force trusted_domains * add nextcloud config
36 lines
942 B
Smarty
36 lines
942 B
Smarty
{{/* Define the configmap */}}
|
|
{{- define "nextcloud.configmap" -}}
|
|
|
|
{{- $hosts := "" }}
|
|
{{- if .Values.ingress.main.enabled }}
|
|
{{- range .Values.ingress }}
|
|
{{- range $index, $host := .hosts }}
|
|
{{- if $index }}
|
|
{{ $hosts = ( printf "%v %v" $hosts $host.host ) }}
|
|
{{- else }}
|
|
{{ $hosts = ( printf "%s" $host.host ) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: nextcloudconfig
|
|
data:
|
|
NEXTCLOUD_TRUSTED_DOMAINS: {{ ( printf "%v %v %v %v %v" "test.fakedomain.dns" ( .Values.env.NODE_IP | default "localhost" ) ( printf "%v-%v" .Release.Name "nextcloud" ) ( printf "%v-%v" .Release.Name "nextcloud-hpb" ) $hosts ) | quote }}
|
|
{{- if .Values.ingress.main.enabled }}
|
|
APACHE_DISABLE_REWRITE_IP: "1"
|
|
{{- end }}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: hpbconfig
|
|
data:
|
|
NEXTCLOUD_URL: {{ ( printf "%v-%v" .Release.Name "nextcloud" ) | quote }}
|
|
|
|
{{- end -}}
|