mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
46 lines
1 KiB
Plaintext
46 lines
1 KiB
Plaintext
# create users:
|
|
# u username:password
|
|
u ed:123
|
|
u k:k
|
|
|
|
# leave a blank line between volumes
|
|
# (and also between users and volumes)
|
|
|
|
# create a volume:
|
|
# share "." (the current directory)
|
|
# as "/" (the webroot) for the following users:
|
|
# "r" grants read-access for anyone
|
|
# "a ed" grants read-write to ed
|
|
.
|
|
/
|
|
r
|
|
a ed
|
|
|
|
# custom permissions for the "priv" folder:
|
|
# user "k" can see/read the contents
|
|
# and "ed" gets read-write access
|
|
./priv
|
|
/priv
|
|
r k
|
|
a ed
|
|
|
|
# share /home/ed/Music/ as /music and let anyone read it
|
|
# (this will replace any folder called "music" in the webroot)
|
|
/home/ed/Music
|
|
/music
|
|
r
|
|
|
|
# and a folder where anyone can upload
|
|
# but nobody can see the contents
|
|
# and set the e2d flag to enable the uploads database
|
|
# and set the nodupe flag to reject duplicate uploads
|
|
/home/ed/inc
|
|
/dump
|
|
w
|
|
c e2d
|
|
c nodupe
|
|
|
|
# this entire config file can be replaced with these arguments:
|
|
# -u ed:123 -u k:k -v .::r:aed -v priv:priv:rk:aed -v /home/ed/Music:music:r -v /home/ed/inc:dump:w
|
|
# but note that the config file always wins in case of conflicts
|