Changes to the config file can be applied at runtime with
systemctl reload copyparty or the [reload cfg] button in the control-panel (if the user has a/admin permission in any volume).Changes to the [global] config section require a restart to take effect.Quick Summary
A quick summary can be seen using--help-accounts
Creating Accounts
Configuring accounts/volumes with command-line arguments:Creating Volumes
Volumes map server filesystem paths to URL paths with specific permissions.Command-Line Syntax
The syntax is:-v src:dst:perm:perm:...
- src: Local path on the server
- dst: URL path in the web interface
- perm: One or more permissions to set
Basic Examples
Permission Types
Browse folder contents, download files, download as zip/tar, see filekeys/dirkeys
Upload files, move/copy files into this folder (requires
r to see the uploads)Move files/folders from this folder (requires
w at destination)Permanently delete files and folders
User can ask to show dotfiles in directory listings
Only download files, cannot see folder contents or zip/tar
Same as
g except folders return their index.html, and filekeys are not necessary for index.htmlCan see upload time, uploader IPs, config-reload
Same as
rwmda. (read/write/move/delete/admin/dotfiles)Advanced Examples
Write-Only Upload Folder
Anonymous Upload with Filekeys
u1can upload files, browse the folder, and see the generated filekeys- Other users cannot browse the folder, but can access files if they have the full file URL with the filekey
- Replacing
gwithwgwould let anonymous users upload files, but not see the required filekey to access it - Replacing
gwithwGwould let anonymous users upload files, receiving a working direct link in return
User Groups
Built-in Groups
Custom Groups
Shadowing
Hiding specific subfolders by mounting another volume on top of them./mnt and /mnt/web (at URLs / and /web), but not /mnt/web/certs because URL /web/certs is mapped to /var/empty.
This also works for single files, because files can also be volumes.
Dotfiles
Unix-style hidden files/folders starting with a dot.- Anyone can access dotfiles if they know the name
- Dotfiles normally don’t appear in directory listings
- A client can request to see dotfiles if:
- Global option
-edis specified, OR - The volume has volflag
dots, OR - The user has permission
.
- Global option
Configuration Example
Password Ban Protection
Anyone trying to bruteforce a password gets banned according to--ban-pw.
Default: 24h ban for 9 failed attempts in 1 hour