image:
  repository: tccr.io/truecharts/typecho
  tag: v1.2.0-php8.0@sha256:66ebc878c8a56301b4ed730a6ce2af8ed062c6df03cd93488914d0fcf873076f
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

env:
  TIMEZONE: "{{ .Values.TZ }}"
  TYPECHO_INSTALL: 1
  TYPECHO_DB_ADAPTER: "Pdo_Mysql"
  TYPECHO_DB_PORT: "3306"
  TYPECHO_DB_USER: "{{ .Values.mariadb.mariadbUsername }}"
  TYPECHO_DB_DATABASE: "{{ .Values.mariadb.mariadbDatabase }}"
  TYPECHO_DB_PREFIX: "typecho_"
  TYPECHO_DB_ENGINE: "InnoDB"
  TYPECHO_DB_CHARSET: "utf8mb4"
  TYPECHO_DB_NEXT: "none"
  # User Defined
  MEMORY_LIMIT: "100M"
  MAX_POST_BODY: "50M"
  TYPECHO_SITE_URL: "https://your-domain.com"
  TYPECHO_USER_NAME: "typecho"
  TYPECHO_USER_PASSWORD: "testtypecho"
  TYPECHO_USER_MAIL: "test@truecharts.org"
  TYPECHO_DB_HOST:
    secretKeyRef:
      name: mariadbcreds
      key: plainhost
  TYPECHO_DB_PASSWORD:
    secretKeyRef:
      name: mariadbcreds
      key: mariadb-password

service:
  main:
    ports:
      main:
        port: 10207
        targetPort: 80

persistence:
  config:
    enabled: true
    mountPath: "/app/usr"

mariadb:
  enabled: true
  mariadbUsername: typecho
  mariadbDatabase: typecho
  existingSecret: "mariadbcreds"
