image:
  repository: tccr.io/truecharts/fireflyiii-core
  pullPolicy: IfNotPresent
  tag: v5.7.9@sha256:73a5611fe5bc7b1580daa93424ec241f34dfc448d01225dc4535946617645e7c

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

service:
  main:
    ports:
      main:
        port: 10082
        targetPort: 8080

probes:
  liveness:
    path: "/login"

  readiness:
    path: "/login"

  startup:
    path: "/login"

env:
  DB_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
  DB_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
  DB_CONNECTION: pgsql
  DB_PORT: 5432
  REDIS_DB: "0"
  REDIS_CACHE_DB: "1"
  CACHE_DRIVER: redis
  SESSION_DRIVER: redis
  REDIS_SCHEME: tcp
  REDIS_PORT: 6379
  APP_URL: ""
  TRUSTED_PROXIES: "172.16.0.0/16"
  DB_HOST:
    secretKeyRef:
      name: dbcreds
      key: plainhost
  DB_PASSWORD:
    secretKeyRef:
      name: dbcreds
      key: postgresql-password
  REDIS_HOST:
    secretKeyRef:
      name: rediscreds
      key: plainhost
  REDIS_PASSWORD:
    secretKeyRef:
      name: rediscreds
      key: redis-password
  STATIC_CRON_TOKEN:
    secretKeyRef:
      name: fireflyiii-secrets
      key: STATIC_CRON_TOKEN
  APP_KEY:
    secretKeyRef:
      name: fireflyiii-secrets
      key: APP_KEY

persistence:
  data:
    enabled: true
    mountPath: "/var/www/html/storage/upload"

cronjob:
  schedule: "0 3 * * *"
  annotations: {}
  failedJobsHistoryLimit: 5
  successfulJobsHistoryLimit: 2

# Enabled redis
redis:
  enabled: true
  existingSecret: "rediscreds"

# Enabled postgres
postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: firefly
  postgresqlDatabase: firefly
