Skip to content

How to Set Up copyparty on a Linux Server – Your Own File Server with Sharing Links and WebDAV

Set up copyparty as a One-Click App or with Docker on your VPS, upload large files in your browser, share them with a link, and mount them as a network drive.

1 December 202613 min read1 Views0 helpful

Introduction

copyparty is a lightweight file server that you use entirely in your browser. Upload files and entire folders with drag and drop, download them individually or as a ZIP archive, share them with others using a link, and mount the server as a network drive in Windows, macOS, or Linux using WebDAV. Large uploads are transferred in chunks and resume automatically after a connection is interrupted. copyparty also includes previews for photos and videos, a media player for music, and file search. copyparty is open source (MIT license) and written in Python. It does not require a database.

In this guide, we’ll show you two ways to get started: the simple One-Click App option, which runs copyparty with password protection and HTTPS at your own address, and a manual installation with Docker Compose. Then, you’ll learn how to share files and mount copyparty as a drive.

When to Use copyparty on a VPS

copyparty is a good choice if:

  • You want to transfer large files reliably, such as videos, backups, or project folders. copyparty resumes interrupted uploads instead of starting over.
  • You want to share files with others quickly without requiring recipients to create an account. Sharing links can have a password and an expiration date.
  • You need your own online storage that you can access in a browser and as a network drive.
  • You have limited resources. copyparty runs with 256 MB of RAM. The storage space on your VPS is the real limit.

copyparty is less suitable if you want to automatically sync folders between multiple devices, collaborate on Office documents, or manage calendars and contacts. For those needs, Nextcloud is the more comprehensive solution.

The Easy Way: copyparty as a One-Click App

The quickest way to get copyparty running is through your VPS’s One-Click Apps. With a domain, the app is available directly over HTTPS. You don’t need to configure a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • copyparty itself needs 1 vCore and at least 256 MB of RAM; 512 MB is recommended.
  • Enough free storage for your files. Everything you upload is stored on your VPS’s SSD.

Install copyparty

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for copyparty in the App catalog and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected. Leave it enabled and enter a name, such as dateien. For zap.cloud, ZapX adds your server number to the name. The finished address is shown in the form. Always run copyparty with a domain; otherwise, your password and files will be sent over the network unencrypted.
  4. You don’t need to enter anything under App configuration. ZapX generates a username and password during installation.
  5. Click Queue installation. After about one or two minutes, copyparty will show as online on the app card.

First Login: Only the Password Matters

You can find the login details in the app settings (gear icon), under App environment > Automatically generated values. Click the eye icon to show a value or the copy icon to copy it:

ValueMeaning
SERVICE_USER_COPYPARTYYour account name (for example, zapx). After you log in, copyparty displays it in the top-right corner next to Logout.
SERVICE_PASSWORD_COPYPARTYPassword for the web interface and WebDAV

Open the app’s Access link. Before you log in, you’ll see only a page with a password field. Enter your password and click login. copyparty does not ask for a username in the browser; the password alone determines the account. After logging in, you’ll see Read-Write-Move-Delete-Admin access in the top-right corner. This means your account can read, upload, move, rename, and delete files, and manage sharing links. The web interface is in English, so this guide uses its English labels.

Info: Nothing is visible without a password

The One-Click App creates exactly one account and gives only that account access to your files. Anyone who visits the address without a password will see only the login page and won’t be able to view or upload files. Anyone who enters an incorrect password nine times within an hour will be blocked for 24 hours. The block applies only to the attacker’s IP address, so you can still access the server.

Upload and Manage Files

After logging in, you’ll see a toolbar at the top and the file list below it.

  • Upload: Drag files or entire folders into the browser window. Alternatively, click the rocket icon (🚀 up2k) and then drop files / folders here (or click me). copyparty will briefly ask where to put the files. Click OK to start the upload. Under parallel uploads, you can choose how many files to transfer at once.
  • Create a folder: Use the folder icon (📂 mkdir) to create a folder, or the notepad icon (📝 new-file) to create a text file.
  • Move, rename, or delete: Click a row in the file list, but not the filename itself, to select a file. The name (rename), del. (delete), cut, and paste (move) buttons will then appear in the bottom-right corner. You can also use keyboard shortcuts: F2 renames a file, Ctrl+X and Ctrl+V move it to another folder, and Ctrl+K deletes it.
  • Download: Click a file to download or view it. Click zip in the bottom-right corner to download the current folder as an archive.
  • Search: The magnifying glass (🔎) searches all files by name, path, size, or date.
Tip: Resume interrupted uploads

If a large upload is interrupted, for example because your Wi-Fi disconnected, simply drag the same files into the window again. copyparty recognizes the parts that have already been transferred and uploads only the rest. This even works after restarting your computer.

Updates and Backups

To check for a new version, open the app settings (gear icon), go to App update, and click Check for updates. Click Apply update to install a new version. If the page says the app is up to date, there isn’t a newer version in the app catalog. copyparty resumes any uploads that were in progress during an update.

Your files are stored in the app’s volume at /w; sessions and sharing links are stored in a second volume at /cfg. Both are retained through restarts and updates. Be sure to make your own backup as well: backing up your VPS in the Backups tab will save everything. You can also download individual folders as needed using zip.

Manual Installation

The rest of this guide describes how to manually install copyparty on your VPS using Docker Compose. For example, you might choose this option if you don’t use One-Click Apps on your server, need multiple accounts with different permissions, or want to share existing folders. This guide is based on the official copyparty Docker guide.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First Access via SSH.
  • Docker and Docker Compose. See Install Docker. Check that they’re installed with docker --version and docker compose version.
  • For HTTPS: a domain or subdomain whose A record points to your VPS’s IP address (for example, dateien.example.com).

copyparty itself requires few resources. Choose your storage capacity based on the size of your files:

MinimumRecommended
CPU1 vCore1 vCore
RAM256 MB512 MB
Storage1 GB10 GB plus your files

Prepare the Firewall

copyparty listens on port 3923 inside the container. Don’t open this port; copyparty should be accessible only through a reverse proxy with HTTPS. Use ufw to allow only SSH and the ports required by the reverse proxy:

Code
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status

In the Compose file below, port 3923 is bound only to 127.0.0.1. This means only the reverse proxy on the same server can access it, even if Docker sets its own firewall rules.

Set Up Accounts and Permissions

Without configuration, copyparty gives every visitor read and write access. So first, create a configuration file with an account and its permissions. Create a folder with subfolders for configuration and files:

Code
mkdir -p ~/copyparty/cfg ~/copyparty/data
cd ~/copyparty

Create the file cfg/copyparty.conf, for example with nano cfg/copyparty.conf. Replace max and EinLangesPasswort with your username and a secure password:

Code
[global]
  e2dsa         # Dateien indexieren (Suche, Duplikate erkennen)
  shr: /share   # Freigabe-Links einschalten
  xff-src: lan  # dem Reverse Proxy auf demselben Server vertrauen
  rproxy: -1    # echte Besucher-IP aus X-Forwarded-For lesen
  daw           # WebDAV darf bestehende Dateien überschreiben

[accounts]
  max: EinLangesPasswort

[/]
  /w
  accs:
    A: max      # max darf alles: lesen, schreiben, verschieben, löschen, verwalten
  • [accounts] defines the accounts, with one per line in the format name: password.
  • [/] makes the /w folder in the container copyparty’s home page. Under accs, you assign permissions. A stands for all permissions. Other options include r (read), w (upload), m (move), and d (delete), which you can combine. For example, rw: lisa gives an account permission to read and upload, but not delete.
  • To set up additional folders with their own permissions, add sections such as [/photos]. See the official documentation on accounts and volumes for examples.
  • xff-src and rproxy let copyparty see visitors’ real IP addresses when it’s behind a reverse proxy. This matters because copyparty blocks attackers after nine incorrect passwords. Without these lines, the block would apply to the reverse proxy and therefore affect all visitors.

copyparty runs in the container as a user with ID 1000. Give it access to both folders and protect the configuration file, since it contains your password:

Code
sudo chown -R 1000:1000 cfg data
sudo chmod 600 cfg/copyparty.conf

Install with Docker Compose

Create the file compose.yaml in the ~/copyparty folder:

Code
services:
  copyparty:
    image: copyparty/ac:1.20.28
    container_name: copyparty
    restart: unless-stopped
    user: "1000:1000"
    ports:
      - "127.0.0.1:3923:3923"
    volumes:
      - ./cfg:/cfg
      - ./data:/w
    environment:
      PYTHONUNBUFFERED: 1
    stop_grace_period: 15s

Important lines:

  • image uses the recommended ac build with a fixed version. It also includes FFmpeg for video previews and the media player. Find the latest version in the copyparty releases.
  • user runs copyparty without root privileges.
  • ports binds copyparty only to 127.0.0.1. The port can’t be accessed externally.
  • ./cfg contains your configuration. copyparty reads every file ending in .conf in this folder and stores its own session and sharing-link files alongside them.
  • ./data is the folder copyparty shares. To share an existing folder such as /srv/dateien, enter it here instead of ./data.
  • PYTHONUNBUFFERED ensures that messages appear in the logs immediately.

Start copyparty:

Code
docker compose up -d
docker compose logs -f

The logs show a list of folders and their permissions, as well as the line listening @ [::]:3923. Check that your account is listed next to read, write, and delete. Press Ctrl+C to exit the log view; the container will keep running.

First Visit

Before setting up the reverse proxy, you can test copyparty through an SSH tunnel. Run this command on your own computer:

Code
ssh -L 3923:127.0.0.1:3923 root@SERVER_IP

Then open http://localhost:3923 in your browser and log in with your password. You don’t need a username; the password determines the account.

Access via HTTPS Through a Reverse Proxy

Set up nginx as a reverse proxy, as described in Set Up a Reverse Proxy with nginx, and get a certificate as explained in SSL Certificate with Let's Encrypt. The server block for copyparty follows the official example:

Code
server {
    listen 80;
    server_name dateien.example.com;

    client_max_body_size 1024M;
    client_body_timeout 610m;
    send_timeout 610m;

    location / {
        proxy_pass http://127.0.0.1:3923;
        proxy_redirect off;
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_request_buffering off;
        proxy_set_header Connection "Keep-Alive";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
  • client_max_body_size allows large upload chunks. copyparty sends files in chunks of up to 96 MB. With nginx’s default value of 1 MB, every larger upload will fail.
  • proxy_buffering off and proxy_request_buffering off pass uploads and downloads straight through instead of temporarily storing them in nginx.
  • X-Forwarded-For provides copyparty with the visitor’s real IP address.

Then run sudo nginx -t and sudo systemctl reload nginx, and get the certificate with sudo certbot --nginx -d dateien.example.com. copyparty is now available at https://dateien.example.com.

Back Up Your Data

Your files are in ~/copyparty/data; configuration, sessions, and sharing links are in ~/copyparty/cfg. To make a backup, briefly stop copyparty and package both folders into an archive:

Code
cd ~/copyparty
docker compose stop
sudo tar czf ~/copyparty-backup-$(date +%F).tar.gz cfg data
docker compose start

Copy the archive to another computer or storage location. If you have a lot of data, a tool such as rsync is more practical because it transfers only changes.

Update copyparty

Enter the new version number after copyparty/ac: in compose.yaml and restart the container:

Code
cd ~/copyparty
docker compose pull
docker compose up -d
docker image prune -f

The changes in each version and the security vulnerabilities fixed are listed in the copyparty releases. Keep copyparty up to date, especially if you use sharing links.

Share Files and Mount as a Drive

A sharing link lets you share a folder or individual files with people who don’t have an account.

  1. Open the folder you want to share. To share only specific files, select them first.
  2. Click share in the bottom-right corner.
  3. Under name, you can enter a custom name for the link. If you leave it blank, copyparty chooses a random name. You can optionally set a password under passwd.
  4. Under expiry, set how long the link should remain valid, for example, enter 7 under days. Select eternal if you don’t want it to expire.
  5. Under perms, choose what visitors can do: read lets them view and download files. If you’re sharing an entire folder, you can also select write to allow uploads or write-only to allow uploads only, for example, for a drop box where others can send you files.
  6. Click create share. copyparty will show you the completed link.

You can find all your shares under control-panel below the file list. There, you can extend or delete them. Visitors can access sharing links at your server’s address, followed by /share/ and the link name.

Mount as a Network Drive Using WebDAV

copyparty supports WebDAV at the same address as the web interface. copyparty provides the exact instructions for your system: click connect on the home page and select Windows, Linux, or macOS.

  • Windows: Open File Explorer, right-click This PC, and select Map network drive. Enter your server address as the folder, for example, https://dateien.example.com/. When logging in, it’s best to enter your password in the username field. This avoids a known Windows issue that occurs after a restart.
  • macOS: In Finder, select Go > Connect to Server and enter your server address.
  • Linux: In file managers such as Nautilus, enter davs://dateien.example.com/; in Dolphin, enter webdavs://dateien.example.com/. rclone is faster and more reliable. Click connect to see the right command.

For the One-Click App, use the address from the Access link instead of dateien.example.com. If you save a file using WebDAV and a file with the same name already exists, copyparty replaces it. You can also move, rename, and delete files in File Explorer or Finder.

Tip: Upload from your smartphone

For Android, the lightweight PartyUP app from F-Droid lets you upload files to copyparty with a single tap. On iPhone and iPad, open the web interface in Safari or use the Shortcuts from the official documentation. For downloading on iPhone and iPad, copyparty recommends Firefox.

What the One-Click App Version of copyparty Can’t Do

  • No FTP, SFTP, or SMB. copyparty supports these protocols, but the One-Click App exposes only the web interface and WebDAV over HTTPS. If you need them, use the manual installation and open the relevant ports.
  • Only one account. To set up multiple accounts with different permissions, use the configuration file in the manual installation. For sharing with others, the One-Click App’s sharing links are sufficient.
  • You can’t choose your own password. ZapX generates the password during installation. You can view it under App environment, but you can’t change it there.
  • No automatic sync. copyparty doesn’t sync folders between devices like a sync client. rclone is a good option for one-time or regular syncs.

Conclusion

With copyparty, you get your own very lightweight file server that reliably transfers large uploads, lets you share files with a link, and can be mounted as a network drive. The quickest way to get started is with the One-Click App: queue the installation, log in with the generated password, and upload files. If you need multiple accounts, custom folders, or additional protocols, the manual installation with Docker Compose gives you full control.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the quickest option: queue the installation, log in with the generated password, and copyparty will run over HTTPS at your own address without a reverse proxy or certificate setup. It has one account and provides the web interface and WebDAV. If you need multiple accounts with different permissions, want to share existing folders, or need FTP and SFTP, choose the manual Docker Compose installation.
Without configuration, copyparty gives every visitor read and write access. The One-Click App therefore creates an account automatically and gives access only to that account. For a manual installation, set up accounts and permissions in the copyparty.conf file before starting copyparty.
By default, copyparty identifies the account using the password alone, so you only need to enter your password in the browser. For WebDAV apps that require a username, you can enter any name or enter your password in the username field.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.