image:
  repository: tccr.io/truecharts/filebot
  tag: v1.14.1@sha256:7488e78942de63908fd5fdc27c41931d54b616c32ef6c09e99f7f64bf2fedd1e
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

service:
  main:
    ports:
      main:
        port: 10268
        targetPort: 5800
  vnc:
    enabled: true
    ports:
      vnc:
        enabled: true
        port: 10269
        targetPort: 5900

envFrom:
  - configMapRef:
      name: '{{ include "tc.common.names.fullname" . }}-filebot'

secretEnv:
  VNC_PASSWORD: ""

filebot:
  KEEP_APP_RUNNING: false
  DISPLAY_WIDTH: 1280
  DISPLAY_HEIGHT: 768
  SECURE_CONNECTION: false
  ENABLE_CJK_FONT: false
  OPENSUBTITLES_USERNAME: ""
  OPENSUBTITLES_PASSWORD: ""
  FILEBOT_CUSTOM_OPTIONS: ""
  AMC_INTERVAL: 1800
  AMC_INPUT_STABLE_TIME: 10
  AMC_ACTION: "test"
  AMC_CONFLICT: "auto"
  AMC_MATCH_MODE: "opportunistic"
  AMC_ARTWORK: false
  AMC_LANG: "English"
  AMC_MUSIC_FORMAT: "{plex}"
  AMC_MOVIE_FORMAT: "{plex}"
  AMC_SERIES_FORMAT: "{plex}"
  AMC_ANIME_FORMAT: "{plex}"
  AMC_PROCESS_MUSIC: true
  AMC_SUBTITLE_LANG: ""
  AMC_CUSTOM_OPTIONS: ""
  AMC_INSTALL_PKGS: ""
  USE_FILEBOT_BETA: false

configmap:
  filebot:
    enabled: true
    data:
      ENABLE_CJK_FONT: "{{ ternary \"1\" \"0\" .Values.filebot.ENABLE_CJK_FONT }}"
      KEEP_APP_RUNNING: "{{ ternary \"1\" \"0\" .Values.filebot.KEEP_APP_RUNNING }}"
      SECURE_CONNECTION: "{{ ternary \"1\" \"0\" .Values.filebot.SECURE_CONNECTION }}"
      DISPLAY_WIDTH: "{{ .Values.filebot.DISPLAY_WIDTH }}"
      DISPLAY_HEIGHT: "{{ .Values.filebot.DISPLAY_HEIGHT }}"
      OPENSUBTITLES_USERNAME: "{{ .Values.filebot.OPENSUBTITLES_USERNAME }}"
      OPENSUBTITLES_PASSWORD: "{{ .Values.filebot.OPENSUBTITLES_PASSWORD }}"
      FILEBOT_CUSTOM_OPTIONS: "{{ .Values.filebot.FILEBOT_CUSTOM_OPTIONS }}"
      AMC_INTERVAL: "{{ .Values.filebot.AMC_INTERVAL }}"
      AMC_INPUT_STABLE_TIME: "{{ .Values.filebot.AMC_INPUT_STABLE_TIME }}"
      AMC_ACTION: "{{ .Values.filebot.AMC_ACTION }}"
      AMC_CONFLICT: "{{ .Values.filebot.AMC_CONFLICT }}"
      AMC_MATCH_MODE: "{{ .Values.filebot.AMC_MATCH_MODE }}"
      AMC_ARTWORK: "{{ ternary \"y\" \"n\" .Values.filebot.AMC_ARTWORK }}"
      AMC_LANG: "{{ .Values.filebot.AMC_LANG }}"
      AMC_MUSIC_FORMAT: "{{ .Values.filebot.AMC_MUSIC_FORMAT }}"
      AMC_MOVIE_FORMAT: "{{ .Values.filebot.AMC_MOVIE_FORMAT }}"
      AMC_SERIES_FORMAT: "{{ .Values.filebot.AMC_SERIES_FORMAT }}"
      AMC_ANIME_FORMAT: "{{ .Values.filebot.AMC_ANIME_FORMAT }}"
      AMC_PROCESS_MUSIC: "{{ ternary \"y\" \"n\" .Values.filebot.AMC_PROCESS_MUSIC }}"
      AMC_SUBTITLE_LANG: "{{ .Values.filebot.AMC_SUBTITLE_LANG }}"
      AMC_CUSTOM_OPTIONS: "{{ .Values.filebot.AMC_CUSTOM_OPTIONS }}"
      AMC_INSTALL_PKGS: "{{ .Values.filebot.AMC_INSTALL_PKGS }}"
      USE_FILEBOT_BETA: "{{ ternary \"1\" \"0\" .Values.filebot.USE_FILEBOT_BETA }}"

persistence:
  config:
    enabled: true
    mountPath: "/config"
  storage:
    enabled: true
    mountPath: "/storage"
  watch:
    enabled: true
    mountPath: "/watch"
  output:
    enabled: true
    mountPath: "/output"
