Stavros Kois преди 1 година
родител
ревизия
f1cc626084
променени са 2 файла, в които са добавени 9 реда и са изтрити 5 реда
  1. 1 1
      library/ix-dev/charts/nextcloud/Chart.yaml
  2. 8 4
      library/ix-dev/charts/nextcloud/templates/_portal.tpl

+ 1 - 1
library/ix-dev/charts/nextcloud/Chart.yaml

@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
 annotations:
   title: Nextcloud
 type: application
-version: 2.0.13
+version: 2.0.14
 apiVersion: v2
 appVersion: 29.0.5
 kubeVersion: '>=1.16.0-0'

+ 8 - 4
library/ix-dev/charts/nextcloud/templates/_portal.tpl

@@ -3,14 +3,18 @@
 {{- if .Values.ncNetwork.certificateID -}}
   {{- $protocol = "https" -}}
 {{- end -}}
-{{- $host := "$node_ip" -}}
-{{- if .Values.ncConfig.host -}}
-  {{- $host = .Values.ncConfig.host -}}
-{{- end -}}
 {{- $port := .Values.ncNetwork.webPort -}}
 {{- if .Values.ncNetwork.nginx.useDifferentAccessPort -}}
   {{- $port = .Values.ncNetwork.nginx.externalAccessPort -}}
 {{- end }}
+{{- $host := "$node_ip" -}}
+{{- if .Values.ncConfig.host -}}
+  {{- $host = .Values.ncConfig.host -}}
+  {{- if contains ":" .Values.ncConfig.host -}}
+    {{- $host = (split ":" $host)._0 -}}
+    {{- $port = (split ":" $host)._1 -}}
+  {{- end -}}
+{{- end -}}
 ---
 apiVersion: v1
 kind: ConfigMap