funkwhale: Improve djangoSecret handling
This commit is contained in:
parent
221330626f
commit
1fe78b90b9
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ appVersion: "1.1.2"
|
|||
description: A social platform to enjoy and share music
|
||||
icon: https://funkwhale.audio/favicon.png
|
||||
name: funkwhale
|
||||
version: 0.4.0
|
||||
version: 0.4.1
|
||||
|
||||
dependencies:
|
||||
- name: redis
|
||||
|
|
|
@ -13,7 +13,7 @@ data:
|
|||
CACHE_URL: {{ include "funkwhale.redisUrl" . | b64enc }}
|
||||
DATABASE_URL: {{ include "funkwhale.dbUrl" . | b64enc }}
|
||||
{{ if $secret -}}
|
||||
DJANGO_SECRET_KEY: {{ $secret.data.DJANGO_SECRET_KEY }}
|
||||
DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default (b64dec $secret.data.DJANGO_SECRET_KEY)) | b64enc }}
|
||||
{{ else -}}
|
||||
DJANGO_SECRET_KEY: {{ (.Values.djangoSecret | default uuidv4) | b64enc }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue