Files
yatm/config.example.yaml
T

54 lines
1.9 KiB
YAML

# Browser-facing public URL, independent of listen; no trailing slash.
# Use "" for browser requests on the current page's origin.
domain: http://127.0.0.1:8080
# Local HTTP service binding; TLS may terminate at a reverse proxy.
listen: 127.0.0.1:8080
# debug port binding
debug_listen: 127.0.0.1:8081
# database settings, you can use sqlite or mysql (untested)
database:
dialect: sqlite
dsn: ./tapes.db
# Optional concurrent Catalog reads. The SQLite database must be on a local filesystem.
# Restart after changing this setting. Job databases keep their existing journal mode.
sqlite_wal: false
# Volume-only installations leave this empty. For Tape, add the actual device
# with an sg mapping (see sg_map) and adapt the scripts below to the environment.
tape_devices: []
# working path settings
paths:
# to save logs and write reports
work: ./
# Administrator boundaries; register original/restore directories in Settings -> Locations.
# An explicit empty list denies access. Ignore uses ordered gitignore rules.
access:
- root: /srv/files
ignore: |
/private/
- root: /srv/restored
# roots that contain already mounted offline Volumes
volumes:
- /mnt
# Preview bundles are addressed by content signature. Generation options live in Settings → Preview.
preview:
# Relative roots resolve within paths.work.
root: ./previews
# Scripts receive TAPE_DIR after the barcode is known. Store LTFS logs and exported indexes there.
# These scripts interact with external software and may need platform-specific changes.
scripts:
# enable hardware encryption on tape driver
encrypt: ./scripts/encrypt
# format ltfs on lto tape, may need to be changed for different ltfs software.
mkfs: ./scripts/mkfs
# mount ltfs to specified path, may need to be changed for different ltfs software.
mount: ./scripts/mount
# umount ltfs path
umount: ./scripts/umount
# read tape barcode for restore jobs
read_info: ./scripts/readinfo