# not actually YAML but lets pretend:
# -*- mode: toml-*-
# vim: ft=toml:

# append some arguments to the commandline;
# accepts anything listed in --help (leading doashes are optional)
# and inline comments are OK if there is 2 spaces before the '#'
[global]
  p: 8086, 3923  # listen on ports 8086 and 3939
  ftp: 3921
  ftp-pr: 12000-12099
  tftp: 3969
  #smb: 3939
  e2dsa  # enable file indexing and filesystem scanning
  e2ts   # and enable multimedia indexing
  z, qr  # and zeroconf and qrcode (you can comma-separate arguments)
  xff-hdr: X-Forwarded-For
  rproxy: -1
# create users:
[accounts]
  liforra: Maisacher64   # username: password
  taxes: A2Zr6agyW46bgKkrZeEnHkD8jSPtcxtKNJP37
  katzengamer: KatzenGamer1?11
  sigsil: i1X04rHBAD7HSxHApoTMN
# create volumes:
[/discord-bot]
  /home/liforra/NoDelete/
  accs:  
    A: liforra
[/sigsil-bot]
  /home/liforra/sigil-selfbot/
  accs:
    rwm: sigsil
    A: liforra
[/attachments]
  ./attachments
  accs:
    wg: *
    A: liforra
[/roms]
  /mnt/vms/roms
  accs:
    A: liforra
    rwm: katzengamer
    rwm: @acct
    rw: *
[/]         # create a volume at "/" (the webroot), which will
  .         # share the contents of "." (the current directory)
  accs:
    rwad: liforra
[/hidden]
  ./private
  accs:
    rw: *
    A: liforra
    A: taxes
  flags:
    nodupe
#[/hidden/.porn/taxes]
# ./private/.porn/people/taxes
#  accs:
#    A: liforra
#    rw: taxes
[/hidden/.porn/people/taxes]
 ./private/.porn/people/taxes
  accs:
    A: liforra
    rw: taxes

# let's specify different permissions for the "priv" subfolder
# by creating another volume at that location:
[/porn]
  ./porn
# share /home/ed/Music/ as /music and let anyone read it
# (this will replace any folder called "music" in the webroot)
[/music]
  /home/ed/Music
  accs:
    r: *
    A: liforra

# and a folder where anyone can upload, but nobody can see the contents
[/dump]
  /home/ed/inc
  accs:
    w: *
  flags:
    e2d     # the e2d volflag enables the uploads database
    nodupe  # the nodupe volflag rejects duplicate uploads
    # (see --help-flags for all available volflags to use)

# and a folder where anyone can upload
# and anyone can access their own uploads, but nothing else
[/sharex]
  /home/ed/inc/sharex
  accs:
    wG: *        # wG = write-upget = see your own uploads only
#    rwmd: ed, k  # read-write-modify-delete for users "ed" and "k"
  flags:
    e2d, d2t, fk: 4
    # volflag "e2d" enables the uploads database,
    # "d2t" disables multimedia parsers (in case the uploads are malicious),
    # "dthumb" disables thumbnails (same reason),
    # "fk" enables filekeys (necessary for upget permission) (4 chars long)
    # -- note that its fine to combine all the volflags on
    #    one line because only the last volflag has an argument

# this entire config file can be replaced with these arguments:
