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"

  logger:
    format: "console"
    level: "info"
    timeFormat: "2006-01-02 15:04:05Z07"
  db:
    driver: sqlite3
    dsn: "fylr.db"
    maxIdleConns: 10
    maxOpenConns: 90
    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
          # allow_redirect: false
          config:
            file:
              dir: "files"

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

  execserver:
    addresses:
      - http://localhost:8083/?pretty=true
    parallel: 18
    parallelHigh: 10
    pluginJobTimeoutSec: 2400
    connectTimeoutSec: 120
    callbackBackendInternalURL: "http://localhost:8081"
    callbackApiInternalURL: "http://localhost:8080"

  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 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
        - http://localhost:*
        - https://localhost:*
    execserver:
      addr: :8083
      jobRemovalPolicy: "done"
      janitorFileAge: "24h"
      waitgroups:
        # video / office conversion
        slow:
          processes: 2
        # convert / image
        medium:
          processes: 6
        # plugins / metadata etc.
        fast:
          processes: 10

      # 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


      services:
        # this service allows to execute arbitrary binaries
        exec:
          waitgroup: fast
        # plugin support
        node:
          waitgroup: fast
        python3:
          waitgroup: fast
        xslt:
          waitgroup: fast
        # file conversion support, also used by video thumbmnail which
        # is calling "fylr convert" which then calls ffmpeg
        convert:
          waitgroup: medium
        ocr:
          waitgroup: slow
        ffmpeg:
          waitgroup: slow
        inkscape:
          waitgroup: slow
        soffice:
          waitgroup: slow
        pdf2pages:
          waitgroup: slow
        iiif:
          waitgroup: fast
        dot:
          waitgroup: fast
        metadata:
          waitgroup: fast

Last updated