# yaml-language-server: $schema=./values.schema.json
image:
  repository: ghcr.io/g0ldyy/comet
  pullPolicy: IfNotPresent
  tag: latest@sha256:d4549e07e48934ec63008afdabb69f45ae5926e2f696e52822a1832460c2c72a

service:
  main:
    ports:
      main:
        port: 8000
        targetPort: 8000

workload:
  main:
    podSpec:
      containers:
        main:
          env:
            comet__Database__ConnectionString: '{{ printf "Host=%s;Port=5432;Database=%s;Username=%s;Password=%s" (.Values.cnpg.main.creds.host | trimAll "\"") .Values.cnpg.main.database .Values.cnpg.main.user .Values.cnpg.main.creds.password }}'
            ADDON_ID: comet.selfhosted.org
            ADDON_NAME: Comet | Selfhosted
            ZILEAN_URL: None
            INDEXER_MANAGER_TYPE: None
            INDEXER_MANAGER_TIMEOUT: "30"
            # INDEXER_MANAGER_URL: http://jackett:9117
            # INDEXER_MANAGER_API_KEY:
            # INDEXER_MANAGER_INDEXERS: '["bitsearch","eztv","thepiratebay","therarbg","yts"]'
            GET_TORRENT_TIMEOUT: "5"
            # DEBRID_PROXY_URL: http://127.0.0.1:1080
            FASTAPI_WORKERS: "1"
            SCRAPE_TORRENTIO: "False"
            DATABASE_TYPE: postgresql
            DATABASE_URL: '{{ printf "%s:%s@%s:5432" .Values.cnpg.main.user  .Values.cnpg.main.creds.password (.Values.cnpg.main.creds.host | trimAll "\"") }}'

persistence:
  data:
    enabled: true
    mountPath: "/data"
  cache:
    enabled: true
    type: emptyDir
    mountPath: "/.cache"

cnpg:
  main:
    enabled: true
    user: comet
    database: comet
