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

# append some arguments to the commandline;
# accepts anything listed in --help (leading dashes are optional)
# and inline comments are OK if there is 2 spaces before the '#'
[global]
  p: 5044, 5144  # listen on ports
  e2dsa  # enable file indexing and filesystem scanning
  e2ts   # and enable multimedia indexing
  #z, qr  # but not zeroconf and qrcode (you can comma-separate arguments)
  name: ajchen's simple? filesystem  # funny name
  xff-hdr: cf-connecting-ip  # cloudflare plz don't fuck with me i beg
  xff-src: lan
  rproxy: -1

# create users:
[accounts]
  ajchen: ajchen   # username: password
  mutou: mutou

# create volumes:
[/]         # create a volume at "/" (the webroot), which will
  .         # share the contents of "." (the current directory)
  accs:
    r: *
    A: ajchen

# share ./music as /music and let anyone read it
# (this will replace any folder called "music" in the webroot)
[/music]
  ./music
  accs:
    rw: *
	A: ajchen, mutou

[/sharex]
  .sharex
  accs:
    wG: *        # wG = write-upget = see your own uploads only
    A: ajchen  # read-write-modify-delete for users "ed" and "k"
  flags:
    e2d, d2t, fk: 4
	lifetime: 3600  # uploads are deleted after 1 hour
    # 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