# This block is for setting up the ingress for more information can be found here:
# https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
  # -- enable deploy an Ingress resource - network traffic from outside the cluster
  enabled: false
  # -- ingress class name, e.g. nginx
  className: ""
  # annotations to apply to the Ingress resource
  annotations: {}
  hosts:
    - host: p.xai-corp.net
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls: []

pixelfed:
  db:
    # -- options: sqlite mysql pgsql sqlsrv
    connection: sqlite
    # -- Automatically run [artisan migrate --force] if new migrations are detected.
    apply_new_migrations_automatically: false

  open_registration: false
  instance:
    # -- your server description
    description: "Pixelfed - test instances"
  activity_pub:
    # -- enable ActivityPub
    enabled: true
    remote_follow: false
    inbox: false
    outbox: false
    sharedinbox: false
    # activity pub logger?
    logger_enabled: false
  ###########################################################
  # Federation
  ###########################################################
  # -- https://docs.pixelfed.org/technical-documentation/config/#atom_feeds
  atom_feeds: "true"

  # -- https://docs.pixelfed.org/technical-documentation/config/#nodeinfo
  nodeinfo: "false"

  # -- https://docs.pixelfed.org/technical-documentation/config/#webfinger
  webfinger: "true"


postgresql:
  # -- enable the bundled [postgresql sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/README.md#parameters).
  # Must set to true if externalDatabase.enabled=false
  enabled: false
  fullnameOverride: "postgresql"
  global:
    storageClass: ""


# valkey is a fork of redis with a better license
valkey:
  # -- enable the bundled [valkey sub chart from Bitnami](https://github.com/bitnami/charts/blob/main/bitnami/valkey/README.md#parameters).
  # Must set to true if externalValkey.enabled=false
  enabled: false
  fullnameOverride: "valkey"
  global:
    storageClass: ""

  # for auth, we get the valkey credentials from an ExternalSecret
  auth:
    enabled: true
    existingSecret: ""
    existingSecretPasswordKey: "password"

  # TLS settings
  tls:
    enabled: false
    authClients: true
    autoGenerated: false

  # primary (control plane) configuration
  primary:
    # -- Laravel requires the ability to call FLUSHDB, which is disabled by default
    disableCommands:
      - FLUSHALL
    persistence:
      # -- enable to persistent primary data accross restarts
      enabled: false
      existingClaim: ""

  # valkey replica configuration
  replica:
    persistence:
      # -- enable to persistent replica data accross restarts
      enabled: false
      existingClaim: ""

  # persistnent volume retention policy for the StatefulSet
  persistentVolumeClaimRetentionPolicy:
    enabled: true
    whenScaled: Retain
    whenDeleted: Retain

  metrics:
    # -- we use a grafana exporter that logs into valkey directly, but you can enable this if you don't use that
    enabled: false

  # -- definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
  # Options: nano, micro, small, medium, large, xlarge, 2xlarge
  # default: nano
  resourcesPreset: "small"

