funkwhale: Improve djangoSecret handling

This commit is contained in:
Alexander "Ace" Olofsson 2021-09-27 06:14:54 +02:00
parent 221330626f
commit 1fe78b90b9
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ appVersion: "1.1.2"
description: A social platform to enjoy and share music description: A social platform to enjoy and share music
icon: https://funkwhale.audio/favicon.png icon: https://funkwhale.audio/favicon.png
name: funkwhale name: funkwhale
version: 0.4.0 version: 0.4.1
dependencies: dependencies:
- name: redis - name: redis

View file

@ -13,7 +13,7 @@ data:
CACHE_URL: {{ include "funkwhale.redisUrl" . | b64enc }} CACHE_URL: {{ include "funkwhale.redisUrl" . | b64enc }}
DATABASE_URL: {{ include "funkwhale.dbUrl" . | b64enc }} DATABASE_URL: {{ include "funkwhale.dbUrl" . | b64enc }}
{{ if $secret -}} {{ if $secret -}}
DJANGO_SECRET_KEY: {{ $secret.data.DJANGO_SECRET_KEY }} DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default (b64dec $secret.data.DJANGO_SECRET_KEY)) | b64enc }}
{{ else -}} {{ else -}}
DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default uuidv4) | b64enc }} DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default uuidv4) | b64enc }}
{{ end }} {{ end }}