image:
  repository: tccr.io/truecharts/lychee-laravel
  pullPolicy: IfNotPresent
  tag: 4.7.3@sha256:4193a77faec43e2ed5560d8fa074b60d3bcc5c84fd5ad6e8a6947f0bcc808162

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

service:
  main:
    ports:
      main:
        port: 10017
        targetPort: 80

# secretEnv:
#   PUSHER_APP_KEY: ""
#   PUSHER_APP_SECRET: ""
#   PUSHER_APP_ID: ""
#   PUSHER_APP_CLUSTER: "mt1"
#   MAIL_DRIVER: "smtp"
#   MAIL_HOST: ""
#   MAIL_FROM_NAME: ""
#   MAIL_FROM_ADDRESS: ""
#   MAIL_USERNAME: ""
#   MAIL_PASSWORD: ""
#   MAIL_PORT: "587"
#   MAIL_ENCRYPTION: "tls"

env:
  # Internal Envs
  TIMEZONE: "{{ .Values.TZ }}"
  PHP_TZ: "{{ .Values.TZ }}"
  DB_CONNECTION: "pgsql"
  DB_PORT: "5432"
  DB_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
  DB_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
  REDIS_PORT: "6379"
  CACHE_DRIVER: "redis"
  SESSION_DRIVER: "redis"
  APP_ENV: "production"
  APP_NAME: "Lychee"
  MIX_PUSHER_APP_KEY: "{{ .Values.env.PUSHER_APP_KEY }}"
  MIX_PUSHER_APP_CLUSTER: "{{ .Values.env.PUSHER_APP_CLUSTER }}"
  # User Envs
  SECURITY_HEADER_HSTS_ENABLE: false
  APP_DEBUG: false
  APP_URL: http://localhost
  DB_PASSWORD:
    secretKeyRef:
      name: dbcreds
      key: postgresql-password
  DB_HOST:
    secretKeyRef:
      name: dbcreds
      key: plainhost
  REDIS_HOST:
    secretKeyRef:
      name: rediscreds
      key: plainhost
  REDIS_PASSWORD:
    secretKeyRef:
      name: rediscreds
      key: redis-password
  APP_KEY:
    secretKeyRef:
      name: lychee-secrets
      key: APP_KEY

persistence:
  conf:
    enabled: true
    mountPath: "/conf"
  sym:
    enabled: true
    mountPath: "/sym"
  uploads:
    enabled: true
    mountPath: "/uploads"

postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: lychee
  postgresqlDatabase: lychee

redis:
  enabled: true
  existingSecret: "rediscreds"

portal:
  enabled: true
