image:
  pullPolicy: IfNotPresent
  repository: tccr.io/truecharts/funkwhale
  tag: 1.2.10@sha256:835a4970cd330024e617e6b320f609b700ee79f042b57118ad761605fbd985d1

# TODO: multi pod setup
# Some examples:
# - https://gitlab.com/ananace/charts/-/tree/master/charts/funkwhale/templates
# - https://dev.funkwhale.audio/funkwhale/funkwhale/-/blob/develop/deploy/env.prod.sample

securityContext:
  container:
    readOnlyRootFilesystem: false
    runAsNonRoot: false
    runAsGroup: 0
    runAsUser: 0

workload:
  main:
    podSpec:
      containers:
        main:
          env:
            FUNKWHALE_HOSTNAME: "http://localhost:{{ .Values.service.main.ports.main.port }}"
            FUNKWHALE_API_PORT: "{{ .Values.service.main.ports.main.port }}"
            NESTED_PROXY: "0"
            DJANGO_SECRET_KEY:
              secretKeyRef:
                name: secret
                key: DJANGO_SECRET_KEY

service:
  main:
    ports:
      main:
        port: 10236
        protocol: http

persistence:
  data:
    enabled: true
    mountPath: /data
  musicpath:
    enabled: true
    mountPath: /music

portal:
  open:
    enabled: true
