Skip to content

Commit

Permalink
Support for more backend config options.
Browse files Browse the repository at this point in the history
  • Loading branch information
samip5 committed Apr 6, 2024
1 parent 12c05d2 commit 17c2c42
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions charts/apps/piped/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sources:
- https://github.com/TeamPiped/piped-proxy
keywords:
- streaming
version: 5.1.4
version: 5.1.5
appVersion: latest
kubeVersion: ">=1.22.0-0"
maintainers:
Expand All @@ -27,5 +27,5 @@ dependencies:
condition: postgresql.enabled
annotations:
artifacthub.io/changes: |-
- kind: fixed
description: backend env var related templates
- kind: added
description: Support for more backend config options.
2 changes: 1 addition & 1 deletion charts/apps/piped/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# piped

![Version: 5.1.3](https://img.shields.io/badge/Version-5.1.3-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 5.1.5](https://img.shields.io/badge/Version-5.1.5-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

Piped is an alternative privacy-friendly YouTube frontend which is efficient by design.

Expand Down
14 changes: 13 additions & 1 deletion charts/apps/piped/templates/backend/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ data:
{{- else }}
{{- fail "PROXY_PART needs to be set in config values or ytproxy ingress must be enabled."}}
{{ end }}
{{- if .Values.backend.config.CAPTCHA_BASE_URL }}
CAPTCHA_BASE_URL: {{ .Values.backend.config.CAPTCHA_BASE_URL }}
{{- else if (and .Values.backend.config.CAPTCHA_BASE_URL .Values.backend.config.CAPTCHA_API_KEY )}}
CAPTCHA_BASE_URL: {{ .Values.backend.config.CAPTCHA_BASE_URL }}
CAPTCHA_API_KEY: {{ .Values.backend.config.CAPTCHA_API_KEY }}
{{- end}}
{{- if .Values.backend.config.API_URL }}
API_URL: {{ .Values.backend.config.API_URL }}
{{- else if (and .Values.ingress.backend.enabled .Values.ingress.backend.tls) }}
Expand Down Expand Up @@ -72,7 +78,6 @@ data:
{{- else if .Values.postgresql.enabled }}
hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}}
hibernate.connection.driver_class: org.postgresql.Driver
hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.username: {{.Values.postgresql.auth.username }}
hibernate.connection.password: {{.Values.postgresql.auth.password }}
{{- else }}
Expand All @@ -83,3 +88,10 @@ data:
{{- else }}
SENTRY_DSN:
{{- end }}
{{- if (and .Values.backend.config.MATRIX_SERVER .Values.backend.config.MATRIX_TOKEN) }}
MATRIX_SERVER: {{.Values.backend.config.MATRIX_SERVER }}
MATRIX_TOKEN: {{ .Values.backend.config.MATRIX_TOKEN }}
{{- else if (not .Values.backend.config.MATRIX_TOKEN) }}
MATRIX_SERVER: https://matrix-client.matrix.org
{{- end }}

0 comments on commit 17c2c42

Please sign in to comment.