From f26bceebb6bf035520e709ef06b1a0703bb9a160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Thu, 2 Mar 2023 07:33:21 +0200 Subject: [PATCH] Better backend configmap --- charts/apps/piped/Chart.yaml | 2 +- charts/apps/piped/templates/backend/configmap.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/apps/piped/Chart.yaml b/charts/apps/piped/Chart.yaml index 21ed4fc..62ea79b 100644 --- a/charts/apps/piped/Chart.yaml +++ b/charts/apps/piped/Chart.yaml @@ -9,7 +9,7 @@ sources: - https://github.com/TeamPiped/piped-proxy keywords: - streaming -version: 0.0.3 +version: 0.0.4 appVersion: latest maintainers: - name: Skyler Mäntysaari diff --git a/charts/apps/piped/templates/backend/configmap.yaml b/charts/apps/piped/templates/backend/configmap.yaml index e935b37..fa0f892 100644 --- a/charts/apps/piped/templates/backend/configmap.yaml +++ b/charts/apps/piped/templates/backend/configmap.yaml @@ -18,8 +18,8 @@ data: {{ end }} {{- if .Values.backend.config.PROXY_PART }} PROXY_PART: {{.Values.backend.config.PROXY_PART }} - {{- else if .Values.ingress.ytproxy.enabled}} - PROXY_PART: {{ index (index .Values.ingress.ytproxy.hosts 0) "host" }} + {{- else if .Values.ingress.ytproxy.enabled and .Values.ingress.ytproxy.tls }} + PROXY_PART: https://{{ index (index .Values.ingress.ytproxy.hosts 0) "host" }} {{- else }} {{- fail "PROXY_PART needs to be set in config values or ytproxy ingress must be enabled."}} {{ end }}