image:
  repository: tccr.io/truecharts/lenpaste
  tag: 1.1.1@sha256:70108877102aaaf1060dd2e96f0b8167f76649d3e9bd1f6a21758f89fd9572d4
  pullPolicy: IfNotPresent

env:
  LENPASTE_ADDRESS: ":{{ .Values.service.main.ports.main.port }}"
  LENPASTE_DB_DRIVER: postgres
  LENPASTE_DB_SOURCE:
    secretKeyRef:
      name: dbcreds
      key: urlnossl
  # User Defined
  LENPASTE_ADMIN_NAME: admin
  LENPASTE_ADMIN_MAIL: admin@example.com
  LENPASTE_DB_CLEANUP_PERIOD: 3h
  LENPASTE_ROBOTS_DISALLOW: true
  LENPASTE_TITLE_MAX_LENGTH: 100
  LENPASTE_BODY_MAX_LENGTH: 10000
  LENPASTE_MAX_PASTE_LIFETIME: unlimited

service:
  main:
    ports:
      main:
        port: 10326
        protocol: HTTP

persistence:
  data:
    enabled: true
    mountPath: "/data"

postgresql:
  enabled: true
  existingSecret: dbcreds
  postgresqlUsername: lenpaste
  postgresqlDatabase: lenpaste

portal:
  enabled: true
