Simple, self-hosted encrypted file transfer.
- Easy to self-host
- Modern UI/UX
- End-to-end encrypted (E2EE)
- Automatic file deletion
- Supports S3 and simple disk storage
- No user accounts
- Metrics included
We are migrating our docs to the wiki.
You will find extensive and up-to-date documentation there.
| Name | Link |
|---|---|
| License | LICENSE |
| Security | security.md |
| API Spec v1 (OpenAPI) | api_v1.yml |
| Changelog | changelog.md |
Log in as your usual Linux user and run this from the repository directory.
./scripts/vps-install.sh --startPoint a public hostname's AAAA record at your IPv6 VPS and allow inbound TCP 80 and 443. On a host with native IPv6 and no IPv4 gateway, you can transfer a checkout or Git archive over SSH, preserving executable permissions. Cloning directly from GitHub requires a working route to GitHub, such as provider NAT64 with DNS64. The installer works from a folder without Git metadata.
The installer sets up Docker Engine, Buildx and Compose on supported Debian and Ubuntu hosts, using sudo when needed. If you already run Docker, Engine 27 and newer allocate IPv6 subnets automatically. Older engines need a configured IPv6 address pool. Choose IPv6 networking (the default), enter the public hostname, and accept local storage, disk caching and bundled PostgreSQL, or choose advanced settings. Docker builds the wizard and application images on the VPS. The first build needs outbound access to Docker Hub and package repositories and can take a while on a small server.
With an existing rootless Docker Engine, a host net.ipv4.ip_unprivileged_port_start
of 80 or lower allows publishing TCP ports 80 and 443. With RootlessKit's built-in
port driver, you can instead grant CAP_NET_BIND_SERVICE to the rootlesskit
executable and restart the user Docker service.
The installer checks this before building on --start and --update.
See Docker's rootless port instructions.
The installer saves a private .env, waits for the services, and checks the
public homepage and API over trusted HTTPS. IPv6 mode checks both over IPv6,
uses the host network for image builds, and enables IPv6 on the application
bridge. Rerun the same command after a failed install. It reuses .env, database
credentials, certificates and file volumes.
To configure without starting, omit --start. For a full encrypted
upload/download check from another machine, see the browser checks.
When reusing a manually created .env, the installer defaults to IPv6
networking. Set HDROP_IPV6=false and HDROP_BUILD_NETWORK=default in
that file for an IPv4-only deployment.
Run the updater from the installed checkout.
./scripts/vps-install.sh --updateThe updater pulls the enabled service images and rebuilds the API and frontend
with fresh base images before restarting affected services. It uses the existing
.env and volumes, waits for healthy services, and checks the public homepage
and API over HTTPS. To deploy a new hdrop release, update the checkout first.
Bundled PostgreSQL tracks patch releases within major version 19. Plan a database migration before changing the major version of a populated volume. Prometheus publishes exact patch tags for its LTS line, so new LTS patches require updating the tag in both Compose files before running the updater. When moving to a new Alpine release, update the Rust builder and runtime together in both backend Dockerfiles so they use the same system libraries.
Caddy handles HTTPS and routes /v1/* and /status to the Rust API. The frontend
defaults to static files served by unprivileged, read-only Nginx, with an optional
Next.js runtime. See frontend setup for configuration and tests.
You'll need Docker Engine, the Compose plugin, and Git. Point your domain at the host and allow TCP ports 80 and 443.
Generate the Compose .env file with Rust installed. You can do this on your
workstation using the same checkout:
(cd backend && cargo run -p hdrop-env -- --output ../.env)For scripted deployments, pass values with flags and add --non-interactive.
Review the generated TODO_... values and keep .env private in the host's
repository root, then run:
docker compose config --quiet
docker compose up -d --buildTo use the Next.js production server, set HDROP_WEB_RUNTIME=nextjs
in .env, then run docker compose up -d --build web.
Bundled Postgres stores its initialized users in the postgres_data Docker
volume. If you regenerate .env or change POSTGRES_PASSWORD after the first
startup, Postgres will keep the old password in that existing volume. Either
update the database role password inside Postgres or, for a disposable installation,
recreate the bundled database volume before starting with the new .env.
Recreating the volume deletes its stored data.
Start PostgreSQL 19 on its own for local development with this command.
docker compose -f docker-compose.dev.yml up -d postgresThe development database uses its own dev_postgres_data volume. If you have
data to keep from the old PostgreSQL 15 development container, dump it before
replacing the container and restore it into 19. For the full development stack,
export LOCALSTACK_AUTH_TOKEN for the LocalStack S3 emulator, then run
docker compose -f docker-compose.dev.yml up --build.
At Zitane Labs, we are committed to promoting a free and open Internet. We believe in the principles of open source software and the power of community collaboration.
We have chosen to license hdrop under the Affero General Public License version 3 (AGPLv3) for a few key reasons:
-
Community Benefit: The AGPLv3 license ensures that anyone who modifies hdrop and then uses their modified version to provide a service over a network (such as a SaaS product), must make their modifications available to the community. This promotes collaboration and ensures the wider community can benefit from these enhancements.
-
User Freedom: The AGPLv3 license gives users the freedom to use, study, share, and modify the software. We believe in these freedoms and want to extend them to all users of hdrop.
-
Hardened Security: By requiring users of modified versions to share their modifications, the AGPLv3 license helps to ensure that the software remains secure. Security-relevant modifications are more likely to be shared with the community, and can be upstreamed into the main project to benefit all users.
hdrop is free for everyone, and we are committed to keeping it that way.
