mirror of https://github.com/ChillFish8/lust.git
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
backend:
|
|
filesystem: # Use the filesystem backend.
|
|
directory: "data"
|
|
|
|
global_cache:
|
|
max_images: 1000 # At most cache 1000 images.
|
|
max_capacity: 500 # 500MB max capacity.
|
|
|
|
buckets:
|
|
user-profiles: # Define a bucket called "user-profiles", this is accessable out of `/images/user-profiles`.
|
|
mode: aot # Optimise images as and when they're required then store them.
|
|
formats:
|
|
png: true # Enable PNG encoding.
|
|
jpeg: true # Enable JPEG encoding.
|
|
webp: true # Enable WebP encoding.
|
|
gif: false # Disable GIF encoding.
|
|
|
|
webp_config:
|
|
quality: 80 # Set lossy quality to 80%
|
|
method: 4 # Opt on the side of performance slightly more than quality.
|
|
threading: true # Enable multi-threaded encoding.
|
|
|
|
default_serving_format: webp # Serve the WebP format by default.
|
|
default_serving_preset: medium-square # Use the "medium-square" sizing preset by default.
|
|
|
|
presets:
|
|
medium-square: # Define a new resizing preset.
|
|
width: 500 # 500px
|
|
height: 500 # 500px
|
|
|
|
cache: null # Use the global cache handler.
|
|
|