# yaml-language-server: $schema=./values.schema.json
image:
  repository: docker.io/zedeus/nitter
  pullPolicy: IfNotPresent
  tag: latest@sha256:3d079f53357ed550fea5e76d873cd463e15a4d65f394c4a6233478cd768c7c7a

service:
  main:
    ports:
      main:
        protocol: http
        port: 10606

nitter:
  general:
    title: nitter
    hostname: localhost:10606
    httpMaxConnections: 100
  cache:
    listMinutes: 240
    rssMinutes: 10
  config:
    base64Media: false
    enableRSS: true
    enableDebug: false
    proxy: ""
    proxyAuth: ""
    tokenCount: 10
  preferences:
    theme: Nitter
    replaceTwitter: nitter.net
    replaceYouTube: piped.video
    replaceReddit: teddit.net
    replaceInstagram: ""
    proxyVideos: true
    hlsPlayback: false
    infiniteScroll: false

# See: https://github.com/zedeus/nitter/wiki/Creating-session-tokens
configmap:
  nitter-sessions:
    enabled: true
    data:
      sessions.jsonl: |
        {"oauth_token": "TOKEN", "oauth_token_secret": "SECRET"}

workload:
  main:
    podSpec:
      containers:
        main:
          probes:
            liveness:
              enabled: true
              type: http
              path: /
            readiness:
              enabled: true
              type: http
              path: /
            startup:
              enabled: true
              type: tcp
          env:
            NITTER_SESSIONS_FILE: /src/sessions.jsonl

persistence:
  nitter-config:
    enabled: true
    type: configmap
    objectName: nitter-config
    mountPath: /src/nitter.conf
    subPath: nitter.conf
    readOnly: true
  nitter-sessions:
    enabled: true
    type: configmap
    objectName: nitter-sessions
    mountPath: /src/sessions.jsonl
    subPath: sessions.jsonl
    readOnly: true

redis:
  enabled: true
