From 5095d17e8187df0d2fdfe510727553afafff919a Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 5 Feb 2023 21:32:20 +0000 Subject: [PATCH] more interesting config example --- docs/copyparty.d/some.conf | 4 ++++ docs/example.conf | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/copyparty.d/some.conf b/docs/copyparty.d/some.conf index 5bf44e10..c49cb951 100644 --- a/docs/copyparty.d/some.conf +++ b/docs/copyparty.d/some.conf @@ -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 diff --git a/docs/example.conf b/docs/example.conf index 1fe868f3..4afc56ee 100644 --- a/docs/example.conf +++ b/docs/example.conf @@ -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