From 9905c614e5111f833470266ad43c160b871b6aa3 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Wed, 24 Aug 2022 19:07:25 +0300 Subject: [PATCH] fix(nextcloud): Add port on non-ingressed installs (#3557) --- charts/stable/nextcloud/Chart.yaml | 2 +- charts/stable/nextcloud/templates/_hpb.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/stable/nextcloud/Chart.yaml b/charts/stable/nextcloud/Chart.yaml index 3249e34266e..e5e05c9c601 100644 --- a/charts/stable/nextcloud/Chart.yaml +++ b/charts/stable/nextcloud/Chart.yaml @@ -37,7 +37,7 @@ sources: - https://github.com/nextcloud/docker - https://github.com/nextcloud/helm type: application -version: 15.2.43 +version: 15.2.44 annotations: truecharts.org/catagories: | - cloud diff --git a/charts/stable/nextcloud/templates/_hpb.tpl b/charts/stable/nextcloud/templates/_hpb.tpl index e318b956884..4adac4a5e67 100644 --- a/charts/stable/nextcloud/templates/_hpb.tpl +++ b/charts/stable/nextcloud/templates/_hpb.tpl @@ -109,7 +109,7 @@ command: {{- end }} # Set overwrite.cli.uri - {{- $url := ( printf "http://%s/" ( .Values.env.AccessIP | default ( printf "%v-%v" .Release.Name "nextcloud" ) ) ) }} + {{- $url := ( printf "http://%s:{{ .Values.service.main.ports.main.port }}/" ( .Values.env.AccessIP | default ( printf "%v-%v" .Release.Name "nextcloud" ) ) ) }} {{- if .Values.ingress.main.enabled }} {{- with (first .Values.ingress.main.hosts) }} {{- $url = ( printf "https://%s/" .host ) }}