#
# 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: ghcr.io/k8s-at-home/tt-rss
  # -- image pull policy
  pullPolicy: IfNotPresent
  # -- image tag
  tag: v1.8723.0

# -- See more environment variables in the tt-rss documentation
# https://git.tt-rss.org/fox/tt-rss/src/branch/master/classes/config.php#L9
# @default -- See below.
env:
  # -- External URL you use to connect to the RSS (the one you enter in your browser)
  TTRSS_SELF_URL_PATH: ""
  # -- Postgres database hostname
  # @default -- internal postgresql URL
  TTRSS_DB_HOST: "{{ printf \"%s-postgresql\" .Release.Name }}"
  # -- Postgres database port.
  TTRSS_DB_PORT: "5432"
  # -- Postgres database user name
  # @default -- postgresql.auth.username value
  TTRSS_DB_USER: "{{ .Values.postgresql.auth.username }}"
  # -- Postgres database password
  # @default -- postgresql.auth.password value
  TTRSS_DB_PASS: "{{ .Values.postgresql.auth.password }}"
  # -- Postgres database password
  # @default -- postgresql.auth.database value
  TTRSS_DB_NAME: "{{ .Values.postgresql.auth.database }}"

# -- Configure the services for the chart here.
# @default -- See below.
service:
  main:
    ports:
      http:
        port: 8080

ingress:
  # -- Enable and configure ingress settings for the chart under this key.
  # @default -- See values.yaml
  main:
    enabled: false

# -- Bitnami postgres chart. For more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
# @default -- see bellow
postgresql:
  # -- By default uses an internal postgress. Dissable if you use your own Postgres.
  enabled: true
  auth:
    # -- Postgres database user name
    username: tt-rss
    # -- Postgres database password
    password: "changeme"
    # -- Postgres database
    database: tt-rss
  persistence:
    # -- if database is stored to a PVC. Set to true when you are done testing.
    enabled: false
    # storageClass: ""
