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 - https://github.com/TeamPiped/piped-proxy
keywords: keywords:
- streaming - streaming
version: 0.0.3 version: 0.0.4
appVersion: latest appVersion: latest
maintainers: maintainers:
- name: Skyler Mäntysaari - name: Skyler Mäntysaari

View file

@ -18,8 +18,8 @@ data:
{{ end }} {{ end }}
{{- if .Values.backend.config.PROXY_PART }} {{- if .Values.backend.config.PROXY_PART }}
PROXY_PART: {{.Values.backend.config.PROXY_PART }} PROXY_PART: {{.Values.backend.config.PROXY_PART }}
{{- else if .Values.ingress.ytproxy.enabled}} {{- else if .Values.ingress.ytproxy.enabled and .Values.ingress.ytproxy.tls }}
PROXY_PART: {{ index (index .Values.ingress.ytproxy.hosts 0) "host" }} PROXY_PART: https://{{ index (index .Values.ingress.ytproxy.hosts 0) "host" }}
{{- else }} {{- else }}
{{- fail "PROXY_PART needs to be set in config values or ytproxy ingress must be enabled."}} {{- fail "PROXY_PART needs to be set in config values or ytproxy ingress must be enabled."}}
{{ end }} {{ end }}