mirror of
				https://github.com/TeamPiped/Piped-Kubernetes.git
				synced 2024-08-14 23:57:15 +00:00 
			
		
		
		
	Support for more backend config options.
This commit is contained in:
		
							parent
							
								
									12c05d246f
								
							
						
					
					
						commit
						17c2c4278a
					
				
					 3 changed files with 17 additions and 5 deletions
				
			
		|  | @ -10,7 +10,7 @@ sources: | ||||||
|   - https://github.com/TeamPiped/piped-proxy |   - https://github.com/TeamPiped/piped-proxy | ||||||
| keywords: | keywords: | ||||||
|   - streaming |   - streaming | ||||||
| version: 5.1.4 | version: 5.1.5 | ||||||
| appVersion: latest | appVersion: latest | ||||||
| kubeVersion: ">=1.22.0-0" | kubeVersion: ">=1.22.0-0" | ||||||
| maintainers: | maintainers: | ||||||
|  | @ -27,5 +27,5 @@ dependencies: | ||||||
|     condition: postgresql.enabled |     condition: postgresql.enabled | ||||||
| annotations: | annotations: | ||||||
|   artifacthub.io/changes: |- |   artifacthub.io/changes: |- | ||||||
|     - kind: fixed |     - kind: added | ||||||
|       description: backend env var related templates |       description: Support for more backend config options. | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| # piped | # piped | ||||||
| 
 | 
 | ||||||
|   |   | ||||||
| 
 | 
 | ||||||
| Piped is an alternative privacy-friendly YouTube frontend which is efficient by design. | Piped is an alternative privacy-friendly YouTube frontend which is efficient by design. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -32,6 +32,12 @@ data: | ||||||
|     {{- 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 }} | ||||||
|  |     {{- 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 }} |     {{- if .Values.backend.config.API_URL }} | ||||||
|     API_URL: {{ .Values.backend.config.API_URL }} |     API_URL: {{ .Values.backend.config.API_URL }} | ||||||
|     {{- else if (and .Values.ingress.backend.enabled .Values.ingress.backend.tls) }} |     {{- else if (and .Values.ingress.backend.enabled .Values.ingress.backend.tls) }} | ||||||
|  | @ -72,7 +78,6 @@ data: | ||||||
|     {{- else if .Values.postgresql.enabled }} |     {{- else if .Values.postgresql.enabled }} | ||||||
|     hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}} |     hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}} | ||||||
|     hibernate.connection.driver_class: org.postgresql.Driver |     hibernate.connection.driver_class: org.postgresql.Driver | ||||||
|     hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect |  | ||||||
|     hibernate.connection.username: {{.Values.postgresql.auth.username }} |     hibernate.connection.username: {{.Values.postgresql.auth.username }} | ||||||
|     hibernate.connection.password: {{.Values.postgresql.auth.password }} |     hibernate.connection.password: {{.Values.postgresql.auth.password }} | ||||||
|     {{- else }} |     {{- else }} | ||||||
|  | @ -83,3 +88,10 @@ data: | ||||||
|     {{- else }} |     {{- else }} | ||||||
|     SENTRY_DSN: |     SENTRY_DSN: | ||||||
|     {{- end }} |     {{- 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 }} | ||||||
|  | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue