Self-hosted app·Files, photos and passwords
miniserve hosting on a Swiss VPS.
miniserve hosting on a Swiss VPS: Docker Compose with Caddy TLS, sizing for disk and transfer, prices from $12.99/mo, and what Swiss copyright law allows.
- Rust
- Caddy
- Debian
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
You can run miniserve on any of our Cloud VPS plans in ALP1, and the one we recommend is VPS Standard on Debian 13: 4 vCPU, 4 GB RAM, 160 GB NVMe and 15 TB of monthly transfer on a 1 Gbps port, for $12.99 a month. The program barely registers on that hardware, so choosing a plan really means choosing disk for the files and transfer for whoever downloads them. The setting that matters most has nothing to do with us: out of the box, miniserve speaks plain HTTP on every interface with no password, so put TLS and authentication in front of it before the URL leaves your terminal.
02/06
What miniserve is.
miniserve is a small HTTP file server written in Rust on the Actix web framework. Sven-Hendrik Haase (svenstaro on GitHub) maintains it under the MIT licence, and it ships as one self-contained binary for Linux, macOS, Windows, FreeBSD and illumos. Point it at a directory and it renders a listing with correct MIME types and range requests, and streams whole folders as tar or tar.gz on request. Flags switch on uploads, directory creation, deletion, HTTP basic auth, README rendering, a read-only WebDAV endpoint and a health-check route at /__miniserve_internal/healthcheck. The current release is 0.35.0, tagged on 8 April 2026; its one change was the new --workers option, which defaults to 4.
What it leaves out matters as much. There are no user accounts beyond a basic-auth list, no per-folder permissions, no expiring share links and no quotas. On a server it earns its place doing one narrow job: a download point for build artefacts and disk images, or an inbox where a client drops footage too large for e-mail. A Basel architecture office handing plan sets to its site contractor for the length of a project is a typical case.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
The Linux builds weigh around 2 MB and the official container image about 30 MB compressed for amd64, on a Debian testing-slim base. CPU only enters the picture when you ask miniserve to compress, either with --compress-response or with tar.gz archives built on the fly.
Two numbers decide the plan. Disk, because miniserve serves a local directory and has no S3 backend, so every file it lists has to sit on the VPS's own NVMe or on a mount that looks local. Transfer, because VPS traffic is not unmetered: each plan includes a monthly allowance, and every byte a visitor downloads counts against it.
| Plan | vCPU | RAM | NVMe | Transfer / month | Port | Price / month |
|---|---|---|---|---|---|---|
| VPS Starter | 2 | 2 GB | 80 GB | 10 TB | 1 Gbps | $6.99 |
| VPS Standard (recommended) | 4 | 4 GB | 160 GB | 15 TB | 1 Gbps | $12.99 |
| VPS Pro | 6 | 8 GB | 320 GB | 20 TB | 1 Gbps | $22.99 |
To put the 15 TB of Standard in proportion (theoretical, decimal units): it is 3,750 downloads of a 4 GB disk image, or an average of about 46 Mbit/s around the clock for 30 days. Run flat out, the 1 Gbps port would use it up in roughly 33 hours. Starter runs miniserve perfectly well for a small share. We steer people to Standard because 80 GB fills quickly once video or scans are involved, and because its four vCPUs line up with miniserve's default of four workers. Move to Pro when the local share outgrows about 150 GB, not because miniserve wants more cores.
On a 4 GB machine, two memory traps catch people. Upstream warns that zip archives are assembled in memory and can exhaust RAM on large directories, so enable --enable-tar-gz (or plain --enable-tar) and leave --enable-zip off unless the folders are small. The second is new with Debian 13, which mounts /tmp as a tmpfs capped by default at half the RAM. miniserve stages uploads in the system temporary directory unless told otherwise, so a native install on Standard would limit uploads to roughly 2 GB and spend memory doing it. Point --temp-directory at real disk on the same filesystem as the share, as the compose file below does.
The 1 TB object storage bucket ($7.96 a month) sits well next to miniserve, as long as you treat it as what it is: an S3-compatible bucket reached with an endpoint and access keys, not a disk you attach. Two patterns work. Use it as the backup target for the share with restic or rclone sync. Or keep a read-mostly archive in it and expose that to miniserve through rclone mount --read-only --vfs-cache-mode full, while uploads keep landing on local NVMe and a systemd timer moves them into the bucket with rclone move. Bucket traffic is unlimited and carries no request fees, but the download to your visitor still leaves through the VPS and counts against its allowance.
04/06
How to deploy it with us.
- 01Order VPS Standard with Debian 13 from the deploy link above, and point an A record (plus AAAA if you use IPv6) for your hostname,
files.example.comin this example, at the server. - 02Install Docker Engine and the Compose plugin from Docker's own Debian repository.
- 03Create the data directories, owned by the unprivileged UID the container will run as:
install -d -o 1000 -g 1000 /srv/miniserve/share/inbox /srv/miniserve/tmp- 04Put
compose.yamlandCaddyfilein a directory such as/opt/miniserve:
services:
miniserve:
image: docker.io/svenstaro/miniserve:0.35.0
restart: unless-stopped
user: "1000:1000"
command:
- --upload-files=/inbox # uploads allowed only into share/inbox
- --temp-directory=/data/tmp # same filesystem, outside the served tree
- --enable-tar-gz
- --no-symlinks
- --hide-version-footer
- --title=Files
- /data/share
volumes:
- /srv/miniserve:/data
caddy:
image: docker.io/library/caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:files.example.com {
basic_auth {
alice $2a$14$replace-with-the-output-of-caddy-hash-password
}
reverse_proxy miniserve:8080
}- 05Generate the hash (the command prompts, so the passphrase stays out of your shell history), paste it into the Caddyfile, start the stack and test an upload:
docker run --rm -it docker.io/library/caddy:2 caddy hash-password
docker compose up -d
curl -u alice -F "path=@plans.zip" "https://files.example.com/upload?path=/inbox"Several choices in that file are deliberate. miniserve publishes no port at all; Caddy reaches it over the Compose network. That matters because Docker writes its own firewall rules for published ports, ahead of anything ufw manages, so a published 8080 would be open to the internet whatever your host firewall says. Caddy obtains and renews the certificate itself once DNS resolves, and its basic_auth stores bcrypt hashes. miniserve's own --auth user:sha256:<hash> is an unsalted SHA-256, fine for a share that lives an afternoon and weak for one that stays up, because a leaked hash of that kind is cheap to brute-force. --random-route is a speed bump rather than a secret: six hex digits give about 16.8 million possible paths (theoretical). If you put nginx in front instead of Caddy, raise client_max_body_size, whose 1 MB default rejects almost every real upload.
The compose file uses flags rather than environment variables for a reason. In 0.35.0 the temp-directory variable is spelled MINISERVER_TEMP_UPLOAD_DIRECTORY, with a stray R, and a misspelt variable is ignored without complaint. The explicit path at the end is required too: started without a terminal and without a path, miniserve refuses to run rather than guess, which is the right default. Pin the image tag, upgrade by editing it after reading the changelog, then run docker compose pull && docker compose up -d. The latest tag on Docker Hub has been rebuilt more recently than the 0.35.0 release, so it may not correspond to any tagged version.
If you would rather skip Docker, the static x86_64-unknown-linux-musl build from the release page plus the hardened systemd unit upstream ships in packaging/miniserve@.service is an equally good setup; bind it to 127.0.0.1 with -i and keep Caddy in front. Docker adds little isolation around a single static binary, so pick whichever your team already maintains.
05/06
Cost.
| Item | Per month |
|---|---|
| VPS Standard (4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps) | $12.99 |
| Object storage 1 TB, optional | $7.96 |
| Total with storage | $20.95 |
Daily backups add 20 % to the VPS price ($2.60, bringing Standard to $15.59), an extra IPv4 is $2 a month and priority support $10. Yearly billing takes roughly 25 % off the VPS, which puts Standard near $9.75 a month (approximate). Every plan and option is on the pricing page.
Payment is crypto only: Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins, with prices and balances in US dollars. Top-ups run from $25 to $5,000 and earn a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; the unused paid part of a top-up is refundable within 14 days. A $250 top-up becomes a $287.50 balance, which covers Standard plus the 1 TB bucket for about 13 months (theoretical: 287.50 ÷ 20.95 ≈ 13.7). Opening an account is no-KYC: an email address is enough.
06/06
What you may serve, and what you answer for.
Your server sits in ALP1 in the Swiss Alps and is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen), so Swiss law is the frame; our jurisdiction page covers it in more depth. For a file server the relevant rule is short. In Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not, and a public miniserve listing is making available. Your own work, open-source images, files you are licensed to distribute and deliverables for your clients are fine. A public folder of films or cracked software is not.
An upload form open to people without a login is the configuration that gets file servers into trouble, because anyone who finds the URL can publish through your server and you answer for what they put there. Keep authentication on the whole site, restrict --upload-files to a single inbox, and leave --rm-files and --mkdir off unless you need them. Since 1 April 2020, Swiss copyright law (art. 39d CopA) can also oblige a host to stop a work from being made unlawfully available again, but only when the work was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement. An open upload point with no login is exactly the kind of service where that last condition becomes arguable.
A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer (who must remove the content or justify it) and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). Forwarded complaints come to you, and you are expected to answer them. Malware, phishing kits and other manifestly unlawful material have no place in a public folder either; the full rules are in our acceptable use policy.
If the share holds personal data, such as client files, CVs or scanned identity documents, you are the controller under the revised Federal Act on Data Protection, in force since 1 September 2023, and the access controls above are part of the data security that law expects of you. Clients in the EU can send you such files without additional safeguards: on 15 January 2024 the European Commission confirmed that Switzerland continues to ensure an adequate level of protection. For anything specific to your case, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can miniserve serve files straight from the object storage bucket?
Not natively. It reads a local directory and has no S3 backend. A read-only rclone mount of the bucket with a VFS cache works for an archive that is mostly downloaded and rarely changed. Do not point uploads at the mount, and do not treat the bucket as a block device.
Does miniserve handle HTTPS by itself?
It accepts --tls-cert and --tls-key, but it does not obtain or renew certificates, so you would have to arrange renewal and reloads yourself. Caddy in front is less work and gives you bcrypt-hashed basic auth in the same step.
Can I mount the share as a network drive?
Read-only. --enable-webdav answers PROPFIND requests, so davfs2, rclone or a desktop file manager can browse and download, but nothing can be written over WebDAV. Uploads go through the web form or curl -F.
How many people can download at the same time?
miniserve is asynchronous and holds many connections at once; on a VPS the port is the real ceiling. At 1 Gbps, 100 simultaneous downloads would get about 10 Mbit/s each (theoretical).
Does US law reach files on a Swiss server?
As of 31 October 2026, the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That removes one shortcut. It is not a promise that no foreign request can ever concern your data.
Does anything record who downloaded what?
miniserve prints access logs only with --verbose, and Caddy writes access logs only where you add a log directive, so what your own stack records is your choice. On the regulatory side, the revision of the Swiss surveillance ordinance (VÜPF/OSCPT) put to consultation on 29 January 2025 is not in force as of 31 October 2026; the Federal Council has announced a second consultation.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023fedlex, RS 235.1
- CopA art. 39d, in force since 1 April 2020 (RO 2020 1003)fedlex, LDA · verified 31 Oct 2026
- Private download permitted (software excepted), making available without permission notIPI, copyright on the internet
- VÜPF/OSCPT revision not in force, second consultation announcedadmin.ch · status as of 31 Oct 2026
EU and other countries
- EU adequacy for Switzerland confirmed on 15 January 2024European Commission, adequacy decisions
- CLOUD Act executive agreements (United Kingdom and Australia only)US Department of Justice · verified 31 Oct 2026
Industry, providers and software
- miniserve README, features, flags and binding behaviourgithub.com/svenstaro/miniserve
- miniserve changelog, release 0.35.0 dated 2026-04-08 (--workers, default 4)CHANGELOG.md
- miniserve release assets and binary sizesGitHub releases
- miniserve container base image (Debian testing-slim)Containerfile
- Debian 13 /tmp on tmpfs (release notes § 5.1.6)Debian 13 release notes
- Docker Engine installation on Debiandocs.docker.com
- Swico Code of Conduct Hosting, 2025 revisionswico.ch/coc
Other references
- Docker image tags and compressed sizesDocker Hub, svenstaro/miniserve
- Caddy basic_auth, bcrypt default and caddy hash-passwordCaddy documentation
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
