Configuration Files
Copyparty supports configuration files in addition to command-line arguments. Config files are recommended for complex setups.Using Config Files
The config file syntax is not actually YAML but looks similar. Inline comments are OK if there are 2 spaces before the
# sign.Network Configuration
Ports and Interfaces
Port(s) to listen on. Can specify multiple ports.
Network interface to bind to.
Enable HTTPS with certificate.
Unix Socket
Recommended for reverse-proxy setups (better performance and security).File Indexing
Enable database features for searching, upload tracking, and metadata.Enable database; makes files searchable and enables upload-undo
Scan writable folders for new files on startup (also sets
-e2d)Scan all folders for new files on startup (also sets
-e2d)Enable multimedia indexing; makes it possible to search for tags
Scan existing files for tags on startup (also sets
-e2t)Delete all metadata from DB for full rescan (also sets
-e2ts)Recommended Setup
Database Location
By default, a.hist folder is created inside each volume for the filesystem index, thumbnails, audio transcodes, and markdown history.
Move database and thumbnails to another location (global or per-volume)
Move only the database (keep thumbnails in volume)
Zeroconf / mDNS / SSDP
Announce services on the local network for easy discovery.Enable zeroconf (mDNS + SSDP)
Enable mDNS only (Bonjour/Avahi)
Enable SSDP only (Windows Explorer)
QR Code
Print a QR code for quick access from mobile devices.Protocol Servers
FTP Server
Enable FTP server on specified port
Enable FTPS (FTP over SSL) on specified port
SFTP Server
Enable SFTP server (goes ~700 MiB/s, slower than WebDAV and FTP)
WebDAV Server
Disable WebDAV support (enabled by default)
Ask WebDAV clients to login for all folders (required for some clients)
TFTP Server
Enable TFTP server (read/write) on specified port
SMB Server
Enable SMB/CIFS server (unsafe, slow, not recommended for WAN)
Performance Options
Enable multiprocessing (actual multithreading)
Disable logging (improves performance)
Skip hashing files matching pattern
Show folder inode size instead of total contents size (~30% faster listings)
Firewall Ports
Example firewall configuration for all copyparty features:- 69: TFTP
- 80/443: HTTP/HTTPS
- 1900: SSDP
- 3921: FTP
- 3922: SFTP
- 3923: HTTP/HTTPS (default)
- 3945: SMB
- 3969: TFTP
- 3990: FTPS
- 5353: mDNS
- 12000-12099: Passive FTP
Systemd Service
Run copyparty as a systemd service:systemd/copyparty.service
Reverse Proxy
See reverse-proxy documentation for nginx/Apache configurations.When running behind a reverse-proxy, listen on a unix socket for better performance and security.
Security Hardening
Set reverse proxy mode
Set
--rproxy 0 if copyparty is directly facing the internet (not through a reverse-proxy)