#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#

image:
  # -- image repository
  repository: anonaddy/anonaddy
  # -- image tag
  tag: 0.11.2
  # -- image pull policy
  pullPolicy: IfNotPresent

strategy:
  type: Recreate

# -- environment variables. See more environment variables in the [anonaddy documentation](https://github.com/anonaddy/docker#environment-variables).
# @default -- See below
env:
  TZ: "Europe/Berlin"
  # -- Application key for encrypter service
  # You can generate one through `anonaddy key:generate --show` or `echo "base64:$(openssl rand -base64 32)"`
  APP_KEY:
  # -- Root domain to receive email from
  ANONADDY_DOMAIN: anonaddy.kluster.moll.re
  # -- Long random string used when hashing data for the anonymous replies
  ANONADDY_SECRET:

# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
  main:
    ports:
      http:
        port: 8000
      smtp:
        enabled: true
        port: 25
    type: LoadBalancer

ingress:
  # -- Enable and configure ingress settings for the chart under this key.
  # @default -- See values.yaml
  main:
    enabled: true
    annotations:
      kubernetes.io/ingress.class: nginx
      cert-manager.io/cluster-issuer: cloudflare-letsencrypt-prod
    hosts:
      - host: anonaddy.kluster.moll.re
        paths:
          - path: /
            pathType: Prefix
            service:
              port: 8000
    tls:
    - hosts:
      - anonaddy.kluster.moll.re
      secretName: cloudflare-letsencrypt-issuer-account-key

# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
  config:
    enabled: false
    emptydir:
      enabled: false

# https://github.com/bitnami/charts/tree/master/bitnami/mariadb/#installing-the-chart
mariadb:
  enabled: true
  image: 
    name: arm64v8/mariadb:latest
    pullSecrets: []
  # primary:
  #   persistence:
  #     enabled: true
  # auth:
  #   username: "username"
  #   password: "password"
  #   database: database

# -- Enable and configure redis subchart under this key.
#    For more options see [redis chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/redis)
# @default -- See values.yaml
redis:
  enabled: false
  # auth:
  #   enabled: false