_configuration.tpl 434 B

1234567891011121314
  1. {{- define "homarr.configuration" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
  3. {{- $secretKey := randAlphaNum 32 -}}
  4. {{- with (lookup "v1" "Secret" .Release.Namespace (printf "%s-homarr-creds" $fullname)) -}}
  5. {{- $secretKey = ((index .data "NEXTAUTH_SECRET") | b64dec) -}}
  6. {{- end }}
  7. secret:
  8. homarr-creds:
  9. enabled: true
  10. data:
  11. NEXTAUTH_SECRET: {{ $secretKey }}
  12. {{- end -}}