Better backend configmap

This commit is contained in:
Skyler Mäntysaari 2023-03-02 07:33:21 +02:00
parent ae88860742
commit f26bceebb6
2 changed files with 3 additions and 3 deletions

View File

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

View File

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