Skip to main content
Server configuration for copyparty including network settings, SSL/TLS, and daemon options.

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

number
default:"3923"
Port(s) to listen on. Can specify multiple ports.
string
default:"0.0.0.0"
Network interface to bind to.
string
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.
boolean
Enable database; makes files searchable and enables upload-undo
boolean
Scan writable folders for new files on startup (also sets -e2d)
boolean
Scan all folders for new files on startup (also sets -e2d)
boolean
Enable multimedia indexing; makes it possible to search for tags
boolean
Scan existing files for tags on startup (also sets -e2t)
boolean
Delete all metadata from DB for full rescan (also sets -e2ts)

Database Location

By default, a .hist folder is created inside each volume for the filesystem index, thumbnails, audio transcodes, and markdown history.
string
Move database and thumbnails to another location (global or per-volume)
string
Move only the database (keep thumbnails in volume)
If the up2k.db is on a network share (samba/NFS), you may get unpredictable behavior if the share disconnects. Use --hist or --dbpath to place it on local storage.

Zeroconf / mDNS / SSDP

Announce services on the local network for easy discovery.
boolean
Enable zeroconf (mDNS + SSDP)
boolean
Enable mDNS only (Bonjour/Avahi)
boolean
Enable SSDP only (Windows Explorer)

QR Code

Print a QR code for quick access from mobile devices.

Protocol Servers

FTP Server

number
Enable FTP server on specified port
number
Enable FTPS (FTP over SSL) on specified port

SFTP Server

number
Enable SFTP server (goes ~700 MiB/s, slower than WebDAV and FTP)

WebDAV Server

boolean
Disable WebDAV support (enabled by default)
boolean
Ask WebDAV clients to login for all folders (required for some clients)

TFTP Server

number
Enable TFTP server (read/write) on specified port

SMB Server

number
Enable SMB/CIFS server (unsafe, slow, not recommended for WAN)
SMB server is unsafe and slow. Not recommended for internet-facing deployments.

Performance Options

number
default:"0"
Enable multiprocessing (actual multithreading)
Usually NOT recommended. Can reduce performance in most cases despite lower latency.
boolean
Disable logging (improves performance)
regex
Skip hashing files matching pattern
boolean
Show folder inode size instead of total contents size (~30% faster listings)

Firewall Ports

Example firewall configuration for all copyparty features:
Port mapping:
  • 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

1

Set reverse proxy mode

Set --rproxy 0 if copyparty is directly facing the internet (not through a reverse-proxy)
2

Use unix socket

When behind a reverse-proxy, listen on a unix socket for tighter access control
3

Prevent XSS

Use volflag nohtml for volumes with anonymous uploads or untrusted content
4

Disable dangerous features

Use -s safety profile to disable thumbnails and audio transcoding

Complete Example