image:
  repository: tccr.io/truecharts/youtubedl-material
  tag: v4.3@sha256:5e2883f7a4483f2bae81cca5230c0f37d86fd2f1357594b321f1a2c732ee0fbc
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0
  fsGroup: 1000

security:
  PUID: 1000

env:
  ytdl_mongodb_connection_string:
    secretKeyRef:
      name: mongodbcreds
      key: url
  ytdl_port: "{{ .Values.service.main.ports.main.port }}"
  ytdl_use_local_db: false
  ALLOW_CONFIG_MUTATIONS: true
  write_ytdl_config: true
  # Used Defined
  ytdl_url: ""
  ytdl_multi_user_mode: false
  ytdl_allow_subscriptions: true
  ytdl_subscriptions_check_interval: 86400
  ytdl_subscriptions_redownload_fresh_uploads: false
  ytdl_allow_theme_change: true
  ytdl_default_theme: "default"
  ytdl_title_top: "YoutubeDL-Material"
  ytdl_file_manager_enabled: true
  ytdl_enable_downloads_manager: true
  ytdl_allow_quality_select: true
  ytdl_download_only_mode: false
  ytdl_use_api_key: false
  ytdl_api_key: ""
  ytdl_youtube_api_key: ""
  ytdl_use_twitch_api: false
  ytdl_twitch_api_key: ""
  ytdl_twitch_auto_download_chat: false
  ytdl_use_sponsorblock_api: false
  ytdl_generate_nfo_files: false
  ytdl_default_file_output: ""
  ytdl_custom_args: ""
  ytdl_allow_playlist_categorization: true
  ytdl_use_youtubedl_archive: false
  ytdl_include_thumbnail: true
  ytdl_include_metadata: true
  ytdl_max_concurrent_downloads: 5
  ytdl_download_rate_limit: ""
  ytdl_default_downloader: "yt-dlp"
  ytdl_use_default_downloading_agent: true
  ytdl_custom_downloading_agent: ""
  ytdl_logger_level: "debug"
  ytdl_jwt_expiration: 86400
  ytdl_allow_advanced_download: false
  ytdl_use_cookies: false

service:
  main:
    ports:
      main:
        port: 10253

persistence:
  appdata:
    enabled: true
    mountPath: "/app/appdata"
  users:
    enabled: true
    mountPath: "/app/users"
  subscriptions:
    enabled: true
    mountPath: "/app/subscriptions"
  audio:
    enabled: true
    mountPath: "/app/audio"
  video:
    enabled: true
    mountPath: "/app/video"

mongodb:
  enabled: true
  existingSecret: "mongodbcreds"
  mongodbUsername: ytdl_material
  # DB name seems to be harcoded in their app
  mongodbDatabase: ytdl_material
