For the complete documentation index, see llms.txt. This page is also available as Markdown.

fylr.default.yml

In this section you find the default settings, used if you start fylr.yml with fylr+:

fylr.default.yml
# The default fylr yml is used if the config file "" is requested.
# It's built into the fylr binary.
fylr:
  name: "fylr"
  externalURL: "http://localhost"

  # peers allowed to name the client in x-real-ip / x-forwarded-for; loopback
  # is always trusted. See fylr.example.yml.
  trustedProxies: []

  logger:
    format: "console"
    level: "info"
    timeFormat: "2006-01-02 15:04:05Z07"
  # A db: block without the + suffix replaces this whole block, and the
  # connection pool then keeps no idle connection (every transaction opens
  # a new one) and opens any number; write db+: to keep these.
  db:
    driver: sqlite3
    dsn: "fylr.db"
    maxIdleConns: 10
    maxOpenConns: 90
    # a pooled connection idle for this long is closed, 0 = never
    connMaxIdleTimeSec: 30
    init:
      config:
        system:
          config:
            # purge:
            #   allow_purge: true
            #   purge_storage: true
            location_defaults:
              originals: file
              versions: file
              backups: file
      locations:
        file:
          kind: file
          # allow_purge: true
          config:
            file:
              dir: "files"

  elastic:
    parallel: 4
    objectsPerJob: 100
    metadataFulltextLimit: 1mb
    maxMem: 25mb
    addresses:
      - "http://localhost:9200"

  execserver:
    addresses:
      - http://localhost:8083/
    pluginJobTimeoutSec: 2400
    connectTimeoutSec: 120
    maxInFlight: 0

  eas:
    rput:
      # Block /api/v1/eas/rput[/bulk] from fetching loopback,
      # link-local and private (RFC1918 / ULA) addresses by default.
      # See fylr.example.yml for the full documentation of this list.
      # To disable, override with an empty list: `blockedHosts: []`.
      blockedHosts:
        - 127.0.0.0/8
        - ::1/128
        - 169.254.0.0/16
        - fe80::/10
        - 10.0.0.0/8
        - 172.16.0.0/12
        - 192.168.0.0/16
        - fc00::/7

  geo:
    # Cap on the number of vertices a single geo shape may contribute to the
    # compiled _standard. Larger shapes are simplified (RDP) down to this many
    # before being stored in _standard; the original field value keeps full
    # precision. See fylr.example.yml. 0 disables simplification.
    standardMaxVertices: 100

  services:
    api:
      addr: :8080
      oauth2Server:
        clients:
          fylr-web-frontend:
            public: true
            scopes:
              - "read"
              - "write"
              - "offline"
          fylr-mobile-app:
            public: true
            redirectURIs:
              - "fylr.app.scheme:///"
            scopes:
              - "read"
              - "write"
              - "offline"
          ci-hub:
            public: true
            redirectURIs:
              - "https://live.ci-hub.com/api/v1/auth/login/fylr"
              - "https://dev.ci-hub.com/api/v1/auth/login/fylr"
              - "https://stage.ci-hub.com/api/v1/auth/login/fylr"
              - "https://ci-hub.net/api/v1/auth/login/fylr"
              - "https://api.ci-hub.com/auth/login/fylr"
              - "https://identity.ci-hub.com/auth/login/fylr"
              - "https://ci-hub.azurewebsites.net/api/v1/auth/login/fylr"
              - "https://ci-hub-beta.azurewebsites.net/api/v1/auth/login/fylr"
              - "https://ci-hub-test.azurewebsites.net/api/v1/auth/login/fylr"
              - "http://localhost:8080/api/v1/auth/login/fylr"
            scopes:
              - "read"
              - "write"
              - "offline"
          linkrui:
            public: true
            redirectURIs:
              - "https://fylr.linkrui.com/oauth"
              - "https://stage-fylr.linkrui.com/oauth"
            scopes:
              - "read"
              - "write"
              - "offline"
    backend:
      addr: :8081
    webapp:
      addr: :80
      # path: easydb-webfrontend/build
      oauth2:
        clientID: fylr-web-frontend
        internalURL: http://localhost:8080
      reverseProxy:
        api: "bind"
        backend: "http://localhost:8081"
      # baked-in so programmfabrik-hosted frontend branches at
      # *.web.fylr.dev and *.web.fylr.io can be tested
      # against customer fylrs via the cross-server
      # feature. localhost on any port covers frontend developers
      # running a local dev server. Customer configs replace this
      # list by default; use loginAllowRedirects+: to extend it or
      # loginAllowRedirects-: to remove a baked-in entry.
      loginAllowRedirects:
        - https://*.web.fylr.dev
        - https://*.web.fylr.io
        - http://localhost:*
        - https://localhost:*
    execserver:
      addr: :8083
      jobRemovalPolicy: "done"
      janitorFileAge: "24h"
      # One pool of slots for every service. A slot is a unit of
      # admission, not a core: a job holds one, however many threads its
      # command runs. The balancer classifies each service light or heavy by
      # its measured runtime, and heavy jobs never take the last fastReserve
      # slots, so short interactive work always finds one. See
      # fylr.example.yml for the reasoning behind each value.
      slots: 0             # size of the pool, 0 = GOMAXPROCS, the CPUs available to fylr
      fastReserve: -1      # slots only light jobs may take, -1 = max(1, slots/4), 0 = none
      heavyThreshold: 10s  # a service slower than this counts as heavy
      unknownShare: 0.5    # pool share for services not measured yet
      # graceful shutdown: running jobs may finish for this long,
      # stragglers are interrupted with a "stopped, retry later" receipt
      drainTimeoutSec: 20
      # a command showing no progress for this long is aborted, 0 = off
      stallTimeoutSec: 600

      # common environment to be used for all program exec
      env:
        - FYLR_METADATA_BLURHASH=10M

      commands:
        fylr:
          prog: fylr
        exiftool:
          prog: exiftool
        ffmpeg:
          prog: ffmpeg
        inkscape:
          prog: inkscape
        soffice:
          prog: soffice
        ebook-convert:
          prog: ebook-convert
        ebook-meta:
          prog: ebook-meta
        pdftotext:
          prog: pdftotext
        mutool:
          prog: mutool
        tika:
          prog: tika
        tesseract:
          prog: tesseract
        saxon:
          prog: saxon
        magick:
          prog: magick
        vips:
          prog: vips
        ffprobe:
          prog: ffprobe
        ffmpegthumbnailer:
          prog: ffmpegthumbnailer
        node:
          prog: node
        dot:
          prog: dot
        python3:
          prog: python3
        # used by fylr-plugin-example (Tesseract)
        java:
          prog: java


      # What this execserver offers. A service may carry "maxSlots: N", the
      # most jobs it runs at once, and "threads:", the thread count of its
      # MP4 encodes, which other programs ignore: 0 = every CPU, N, -N =
      # every CPU but N, N% = that share of them. "name:" with nothing behind it removes a service, which is how
      # a dedicated execserver limits itself to some services.
      services:
        # this service allows to execute arbitrary binaries
        exec: {}
        # plugin support
        node: {}
        python3: {}
        xslt: {}
        # file conversion support, also used by video thumbmnail which
        # is calling "fylr convert" which then calls ffmpeg
        convert: {}
        ocr: {}
        # two video encodes at a time, each on every CPU
        ffmpeg: { maxSlots: 2, threads: 0 }
        inkscape: {}
        soffice: {}
        pdf2pages: {}
        iiif: {}
        dot: {}
        metadata: {}

Last updated