apiVersion: v1
kind: ConfigMap
metadata:
  name: immich-config
  namespace: immich
data:
  immich.json: |
    {
      "backup": {
        "database": {
          "cronExpression": "0 02 * * *",
          "enabled": true,
          "keepLastAmount": 14
        }
      },
      "ffmpeg": {
        "accel": "disabled",
        "accelDecode": false,
        "acceptedAudioCodecs": [
          "aac",
          "mp3",
          "libopus",
          "pcm_s16le"
        ],
        "acceptedContainers": [
          "mov",
          "ogg",
          "webm"
        ],
        "acceptedVideoCodecs": [
          "h264"
        ],
        "bframes": -1,
        "cqMode": "auto",
        "crf": 23,
        "gopSize": 0,
        "maxBitrate": "0",
        "preferredHwDevice": "auto",
        "preset": "ultrafast",
        "refs": 0,
        "targetAudioCodec": "aac",
        "targetResolution": "720",
        "targetVideoCodec": "h264",
        "temporalAQ": false,
        "threads": 0,
        "tonemap": "hable",
        "transcode": "required",
        "twoPass": false
      },
      "image": {
        "colorspace": "p3",
        "extractEmbedded": false,
        "preview": {
          "format": "jpeg",
          "quality": 80,
          "size": 1440
        },
        "thumbnail": {
          "format": "webp",
          "quality": 80,
          "size": 250
        }
      },
      "job": {
        "backgroundTask": {
          "concurrency": 5
        },
        "faceDetection": {
          "concurrency": 2
        },
        "library": {
          "concurrency": 5
        },
        "metadataExtraction": {
          "concurrency": 5
        },
        "migration": {
          "concurrency": 5
        },
        "notifications": {
          "concurrency": 5
        },
        "search": {
          "concurrency": 5
        },
        "sidecar": {
          "concurrency": 5
        },
        "smartSearch": {
          "concurrency": 2
        },
        "thumbnailGeneration": {
          "concurrency": 3
        },
        "videoConversion": {
          "concurrency": 1
        }
      },
      "library": {
        "scan": {
          "cronExpression": "0 0 * * *",
          "enabled": true
        },
        "watch": {
          "enabled": false
        }
      },
      "logging": {
        "enabled": true,
        "level": "log"
      },
      "machineLearning": {
        "clip": {
          "enabled": true,
          "modelName": "ViT-B-32__openai"
        },
        "duplicateDetection": {
          "enabled": true,
          "maxDistance": 0.01
        },
        "enabled": true,
        "facialRecognition": {
          "enabled": true,
          "maxDistance": 0.5,
          "minFaces": 3,
          "minScore": 0.7,
          "modelName": "buffalo_l"
        },
        "urls": [
          "http://immich-svc.immich.svc.cluster.local:3003"
        ]
      },
      "map": {
        "darkStyle": "https://tiles.immich.cloud/v1/style/dark.json",
        "enabled": true,
        "lightStyle": "https://tiles.immich.cloud/v1/style/light.json"
      },
      "metadata": {
        "faces": {
          "import": false
        }
      },
      "newVersionCheck": {
        "enabled": true
      },
      "notifications": {
        "smtp": {
          "enabled": false,
          "from": "",
          "replyTo": "",
          "transport": {
            "host": "",
            "ignoreCert": false,
            "password": "",
            "port": 587,
            "username": ""
          }
        }
      },
      "oauth": {
        "autoLaunch": false,
        "autoRegister": true,
        "buttonText": "Login with OAuth",
        "clientId": "",
        "clientSecret": "",
        "defaultStorageQuota": 0,
        "enabled": false,
        "issuerUrl": "",
        "mobileOverrideEnabled": false,
        "mobileRedirectUri": "",
        "profileSigningAlgorithm": "none",
        "scope": "openid email profile",
        "signingAlgorithm": "RS256",
        "storageLabelClaim": "preferred_username",
        "storageQuotaClaim": "immich_quota"
      },
      "passwordLogin": {
        "enabled": true
      },
      "reverseGeocoding": {
        "enabled": true
      },
      "server": {
        "externalDomain": "",
        "loginPageMessage": "",
        "publicUsers": true
      },
      "storageTemplate": {
        "enabled": true,
        "hashVerificationEnabled": true,
        "template": "{{y}}/{{dd}}-{{MM}}/{{filename}}"
      },
      "templates": {
        "email": {
          "albumInviteTemplate": "",
          "albumUpdateTemplate": "",
          "welcomeTemplate": ""
        }
      },
      "theme": {
        "customCss": ""
      },
      "trash": {
        "days": 30,
        "enabled": true
      },
      "user": {
        "deleteDelay": 7
      }
    }