#
# 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: vabene1111/recipes
  # -- image tag
  tag: 1.0.5.2
  # -- image pull policy
  pullPolicy: IfNotPresent

sidecar:
  image:
    # -- nginx sidecar image repository
    repository: nginx
    # -- nginx sidecar image tag
    tag: 1.21.6
    # -- nginx sidecar image pull policy
    pullPolicy: IfNotPresent
  config:
    # -- define the max body size to allow larger files to be uploaded
    client_max_body_size: "128M"
    # -- define the name of the variable in the header containing the authenticated user. It is used together with enabling `REVERSE_PROXY_AUTH`
    reverse_proxy_header_username: x_authentik_username

# -- environment variables. See [project docs](https://raw.githubusercontent.com/vabene1111/recipes/master/.env.template) for more details.
# @default -- See below
env:
  TIMEZONE: UTC
  DEBUG: "0"
  ALLOWED_HOSTS: "*"
  SECRET_KEY: changeme
  DB_ENGINE: django.db.backends.sqlite3
  POSTGRES_HOST:
  POSTGRES_PORT:
  POSTGRES_USER:
  POSTGRES_DB:
  POSTGRES_PASSWORD:
  GUNICORN_MEDIA: "0"
  FRACTION_PREF_DEFAULT: "0"
  COMMENT_PREF_DEFAULT: "1"
  SHOPPING_MIN_AUTOSYNC_INTERVAL: "5"
  REVERSE_PROXY_AUTH: 0

# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
  main:
    ports:
      http:
        port: 80

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

# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
  config:
    enabled: false
  media:
    enabled: false
    mountPath: /opt/recipes/mediafiles
  static:
    enabled: true
    type: emptyDir
    mountPath: /opt/recipes/staticfiles
