Files
copyparty/docs/example.conf

46 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-05-29 23:46:17 +00:00
# create users:
# u username:password
u ed:123
u k:k
2019-05-28 20:49:58 +00:00
2019-05-29 23:46:17 +00:00
# leave a blank line between volumes
# (and also between users and volumes)
2019-05-28 20:49:58 +00:00
2019-05-29 23:46:17 +00:00
# create a volume:
# share "." (the current directory)
# as "/" (the webroot) for the following users:
2019-05-28 20:49:58 +00:00
# "r" grants read-access for anyone
# "a ed" grants read-write to ed
2019-05-29 23:46:17 +00:00
.
/
2019-05-28 20:49:58 +00:00
r
a ed
2019-05-29 23:46:17 +00:00
# custom permissions for the "priv" folder:
# user "k" can see/read the contents
# and "ed" gets read-write access
./priv
/priv
2019-05-28 20:49:58 +00:00
r k
2019-05-29 23:46:17 +00:00
a ed
2019-05-28 20:49:58 +00:00
2019-05-29 23:46:17 +00:00
# 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
2019-05-28 20:49:58 +00:00
# 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
2019-05-28 20:49:58 +00:00
/home/ed/inc
2019-05-29 23:46:17 +00:00
/dump
2019-05-28 20:49:58 +00:00
w
c e2d
c nodupe
2019-05-28 20:49:58 +00:00
2019-05-29 23:46:17 +00:00
# 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