more interesting config example

This commit is contained in:
ed 2023-02-05 21:32:20 +00:00
parent 87d835ae37
commit 5095d17e81
2 changed files with 19 additions and 1 deletions

View file

@ -7,6 +7,10 @@ u usr2:letmein
-i 127.0.0.1
-p 2434
# enable file indexing+scanning and multimedia indexing+scanning
-e2ds
-e2ts
# share /usr/share/games from the server filesystem
/usr/share/games
/vidya

View file

@ -54,6 +54,20 @@ w
c e2d
c nodupe
# and a folder where anyone can upload
# and anyone can access their own uploads but nothing else
# (permissions "wG" = write + upget);
# 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
/home/ed/inc/sharex
/sharex
wG
c e2d,d2t,fk=4
# this entire config file can be replaced with these arguments:
# -u ed:123 -u k:k -v .::r:a,ed -v priv:priv:r,k:rw,ed -v /home/ed/Music:music:r -v /home/ed/inc:dump:w:c,e2d,nodupe
# -u ed:123 -u k:k -v .::r:a,ed -v priv:priv:r,k:rw,ed -v /home/ed/Music:music:r -v /home/ed/inc:dump:w:c,e2d,nodupe -v /home/ed/inc/sharex:sharex:wG:c,e2d,d2t,fk=4
# but note that the config file always wins in case of conflicts