|
@@ -40,7 +40,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "OVERWRITEPROTOCOL" "value" "https") }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "TRUSTED_PROXIES" "value" "127.0.0.1") }}
|
|
|
{{ end }}
|
|
|
- {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_TRUSTED_DOMAINS" "value" .Values.nextcloud.host) }}
|
|
|
+ {{ $hostName := .Values.nextcloud.host }}
|
|
|
+ {{ if .Values.useServiceNameForHost }}
|
|
|
+ {{ $hostName = (include "common.names.fullname" .) }}
|
|
|
+ {{ end }}
|
|
|
+ {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_TRUSTED_DOMAINS" "value" $hostName) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-username") }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-password") }}
|
|
|
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
|