nextcloud: fix portal (#2767)

This commit is contained in:
Stavros Kois
2024-08-27 19:24:42 +03:00
committed by GitHub
parent 35c02c40a4
commit f1cc626084
2 changed files with 9 additions and 5 deletions

View File

@@ -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'

View File

@@ -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