New AMD EPYC dedicated servers in the Swiss Alps, from $64.99 a month See servers

Pay with
EN

Self-hosted app·Documents, notes and projects

PrivateBin hosting on a Swiss VPS.

PrivateBin hosting on a Swiss VPS in ALP1: Docker deployment, sizing, abuse handling under Swiss law, notes on Lufi.

Runs here
  • Docker
  • Caddy
  • PostgreSQL

ALP1·Swiss Alps

In stock

Recommended for this use case

Cloud VPS · Staging, devStarter · 2 vCPU · 2 GB RAM$6.99/mo80 GB NVMe · 10 TB transfer · 1 Gbps
  • 1 Gbps port10 TB of transfer a monthIncluded
  • Debian 13preinstalled with the orderIncluded
  • DDoS protection, 1 IPv4VNC console and full rootIncluded
Per month$6.99/mo

Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less

Deploy VPS Starter
  • No KYC
  • Crypto only
  • Swiss jurisdiction

ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto

  • 2 vCPU, 2 GB RAM
  • 80 GB NVMe local storage
  • 10 TB transfer on a 1 Gbps port
  • DDoS protection included
  • Swiss jurisdiction, outside the EU

01/06

Short answer.

Yes. PrivateBin runs on the smallest plan of our Cloud VPS range, Starter: 2 vCPU, 2 GB of RAM, 80 GB NVMe and 10 TB of monthly transfer on a 1 Gbps port, for $6.99 a month, in our ALP1 facility in the Swiss Alps. For a personal or newsroom instance that is more machine than PrivateBin will use, and it still copes with a busy public one. The plan is the easy part. The decision that matters is who may write to your instance: an open pastebin with attachments enabled gets used to stage phishing pages and malware, precisely because the server holds only ciphertext that neither you nor we can read, and you will hear about it from abuse complaints rather than from your own monitoring. Decide that before you publish the URL.

02/06

What PrivateBin is, and what the server sees.

PrivateBin is a pastebin in which the browser does the encryption. Each document is compressed and encrypted with 256-bit AES in GCM mode before upload, and the key travels in the URL fragment, the part after #, which browsers do not send to the server. It forked from Sébastien Sauvage's ZeroBin in 2016, is published under the zlib licence and is maintained by a small team on GitHub. The current release, 2.1.0 of 18 October 2026, replaced jQuery with plain JavaScript and dropped the Bootstrap 3 template; the 2.0.x releases earlier in the year closed several cross-site scripting holes around attachments. The project supports only its latest release, so plan to update it rather than install it and forget it.

For an individual or an editorial team, the usual reason to self-host is to stop depending on a public instance whose operator and logs you do not control. Zero knowledge then cuts both ways. The disk holds ciphertext plus a little metadata (expiry, size, the burn-after-reading and discussion flags), while the web server sees what any web server sees, client IP addresses and timestamps. That metadata, not the content, is where your obligations as an operator sit. You cannot be made to hand over plaintext you never had, and by the same token you cannot scan or moderate what users upload. PrivateBin also does nothing to hide a writer's IP address from your own logs, which is why it is a poor substitute for a purpose-built source-protection system such as SecureDrop. If what you need to share is credentials rather than snippets, a password manager does the job better: see our page on Vaultwarden hosting.

Hosting Lufi instead

Lufi ("Let's Upload that FIle") applies the same idea to file transfer: the browser encrypts, the key stays in the fragment, and the server stores opaque data. Luc Didry wrote it in Perl on the Mojolicious framework and licensed it under the AGPL. French readers often know it as Framadrop, Framasoft's public instance, which was retired when Framasoft scaled back part of its "Dégooglisons Internet" programme; the closure was scheduled for the fourth quarter of 2021. The code lives on Framagit, and YunoHost currently packages version 0.07.0.

Lufi runs on our VPS too, with two differences from PrivateBin. You install it natively with Carton against SQLite, PostgreSQL or MySQL, since the project publishes no container image of its own and points to a community Docker recipe instead. And the constraint is disk rather than CPU: 80 GB goes quickly once people send video with a week's expiry, so a file-drop instance belongs on Standard (4 vCPU, 160 GB, 15 TB, $12.99) or Pro (6 vCPU, 320 GB, 20 TB, $22.99). Outbound port 25 is open on every VPS, so Lufi can mail download links itself, although a relay with an established reputation will reach inboxes more reliably than a fresh IP. Its abuse profile is the pastebin's, enlarged. If you need accounts, folders and sync rather than one-off transfers, look at our page on OpenCloud hosting.

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.

PrivateBin needs PHP 7.4 or later with the zlib extension. GD is only used by the older identicon and vizhash comment icons, PDO only if you keep data in MySQL, PostgreSQL or SQLite, and OPcache is optional. Storage defaults to plain files; the alternatives are a database, Google Cloud Storage or an S3-compatible bucket. HTTPS is mandatory in practice, because browsers expose the Web Crypto API only in secure contexts, and PrivateBin warns visitors who arrive over plain HTTP. For scale, Cloudron's package declares a minimum of 256 MB of memory.

PrivateBin needsVPS Starter provides
RuntimePHP 7.4+ with zlib, or the official containerDebian 13, full root
Memory256 MB minimum (Cloudron package)2 GB
DiskOS, container image, document store80 GB NVMe
Network443 for users, 80 for certificates1 Gbps, 10 TB/month included

The default size limit is 10,000,000 bytes, checked against the encrypted payload rather than the file the user picked. The maintainers put the inflation from encryption and base64 encoding at roughly 1.3×, so the real ceiling for an attachment is about 7.5 MB. At that worst case, 50 GB of disk holds 5,000 documents and 10 TB of transfer covers about a million full-size downloads a month. Both figures are theoretical; real pastes are mostly a few kilobytes of text.

Starter stops being the right plan if you raise the limit into the hundreds of megabytes. The whole request has to pass through nginx and PHP in one piece, and the project's configuration guide suggests a PHP memory_limit of twice the upload size, so five simultaneous 200 MB uploads would want about 2 GB of PHP memory, which is the entire machine (theoretical). Large files are better served by Lufi, which sends them in chunks, or by a larger plan.

04/06

How to deploy it with us.

The least maintenance comes from the project's own container, privatebin/nginx-fpm-alpine. It runs nginx and php-fpm, keeps code and data outside the document root, and is built to run on a read-only filesystem with only /srv/data and temporary paths writable. It speaks plain HTTP on port 8080, so it goes behind a reverse proxy. We use Caddy, which obtains and renews certificates without further configuration.

  1. 01Order a Starter VPS with Debian 13 (deploy VPS Starter) and point an A record such as paste.example.com at its IPv4 address.
  1. 02Install Docker and Caddy from the Debian archive. The container runs as uid 65534 and gid 82, so the data directory must belong to them:
bash
apt update && apt install -y docker.io caddy mkdir -p /srv/privatebin/data chown 65534:82 /srv/privatebin/data
  1. 03Write /srv/privatebin/conf.php. Anything you leave out keeps its default from cfg/conf.sample.php:
ini
;<?php http_response_code(403); /* [main] basepath = "https://paste.example.com/" fileupload = false icon = "none" [expire] default = "1day" [traffic] limit = 10 header = "X_FORWARDED_FOR" ; creators = "198.51.100.0/24"

The header line matters behind a proxy. Without it, every visitor appears to come from Docker's bridge address and the ten-second rate limit throttles all of them together. Set it only behind a proxy that overwrites the header, as Caddy does by default; otherwise clients can forge it and walk past the limit. icon = "none" turns off the IP-derived comment icons, which the sample configuration itself flags as a way to recover posters' addresses if the server salt ever leaks.

  1. 04Start the container bound to localhost. Docker writes its own firewall rules, so publishing on 127.0.0.1 is more dependable than trying to block port 8080 with ufw afterwards. The image forwards nginx access logs, client IPs included, to Docker, so cap their size:
bash
docker run -d --name privatebin --restart unless-stopped --read-only \ -p 127.0.0.1:8080:8080 \ -v /srv/privatebin/conf.php:/srv/cfg/conf.php:ro \ -v /srv/privatebin/data:/srv/data \ --log-opt max-size=10m --log-opt max-file=2 \ privatebin/nginx-fpm-alpine:stable
  1. 05Put this in /etc/caddy/Caddyfile and run systemctl reload caddy:
example
paste.example.com { reverse_proxy 127.0.0.1:8080 }
  1. 06Purge expired documents on a schedule. PrivateBin only purges when someone creates a document, at most every 300 seconds and ten documents at a time, so on a quiet instance expired ciphertext can sit on disk long after its date. A line in /etc/cron.d/privatebin takes care of it:
example
*/30 * * * * root docker exec privatebin administration --purge >/dev/null

To update, docker pull the image and recreate the container with the same command. Pin a version tag instead of stable if you prefer to upgrade deliberately.

The data directory is the only state on the machine. You can protect it with our daily VPS backups, or move it off the VPS entirely by adding PrivateBin's S3 backend to conf.php and pointing it at an object storage bucket; the all-in-one image already includes the driver:

ini
[model] class = S3Storage [model_options] region = "" version = "2006-03-01" endpoint = "https://<object-storage-endpoint>" use_path_style_endpoint = true bucket = "privatebin" accesskey = "<access key>" secretkey = "<secret key>"

Use the bucket through that native backend. Mounting it with rclone and pointing the filesystem model at the mount is not a setup PrivateBin was designed for, and it invites locking trouble.

05/06

Cost.

ItemPrice
Cloud VPS Starter: 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, 1 Gbps$6.99/month
Same plan billed yearly (≈ −25 %)$62.99/year (≈ $5.25/month)
Daily backups (+20 %)+$1.40/month
Object storage, 250 GB, S3 API, billed by size only$1.99/month
Extra IPv4$2/month
Priority support$10/month

The Starter price includes 10 TB of transfer a month; VPS traffic is counted against that allowance, unlike on our dedicated servers. Payment is in cryptocurrency 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, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. In practice a $25 top-up covers three months of Starter, and $50 with its bonus covers seven (theoretical, before options). The account itself is no-KYC: an email address is enough. Every plan and option is on the pricing page.

06/06

Limits and acceptable use.

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, in line with the Swico Code of Conduct Hosting 2025. For a PrivateBin instance the customer is you: we check that a report is genuine and concerns one of our addresses, then open a ticket that gives you time to answer or fix the problem, unless serious harm is under way. The full procedure is described in our answer on abuse complaints.

Encryption makes moderation unusual but not impossible. A useful complaint contains the full link, key included, so you can open the document, judge it yourself and remove it with docker exec privatebin administration --delete <id>, where the ID is the query string before the #. Scanning is the one thing nobody can do here: the server receives only ciphertext, so neither you nor we can pass uploads through an antivirus engine. If your use case requires scanning files, PrivateBin is the wrong software.

Keeping an instance out of trouble is mostly configuration. If only your own people write, list their office or VPN ranges in creators, or require a password for writes only, so that anyone can still open the links you send:

example
paste.example.com { @write method POST basicauth @write { editor <hash from caddy hash-password> } reverse_proxy 127.0.0.1:8080 }

Comments are POST requests as well, so they need the password too. If the instance has to stay open, for example because a newsroom wants readers to send material, keep attachments off, trim [expire_options] so that "never" is not offered, shorten the default expiry from a week to a day as in the configuration above, and use the notice setting to state your rules. Swiss copyright law obliges a hosting service to stop a work from reappearing only when it was already made available unlawfully through the same service, the provider was notified, and the service creates a particular risk of infringement. An open instance with attachments and permanent links sits much closer to that description than a team pastebin does.

What Swiss jurisdiction adds, and what it does not

The strongest protection for your documents is the cryptography, not the location. What Swiss law governs on our side is your account, your logs and how we respond to requests. The revised Federal Act on Data Protection has been in force since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still provides an adequate level of protection, so personal data such as the IP logs of EU visitors can flow here without additional safeguards. 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, and the revision of the Swiss surveillance ordinance (VÜPF/OSCPT) put to consultation in January 2025 is not in force; the Federal Council has announced a second consultation. Hosta AG is a Swiss company and answers to Swiss authorities. The wider picture is on our offshore hosting page.

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.

Six cloud VPS plans in ALP1 · transfer included on every plan

PlanvCPUMemoryNVMeTransferPortPriceDeploy
StandardSmall apps44 GB160 GB15 TB / month1 Gbps$12.99/moDeploy Standard
ProProduction68 GB320 GB20 TB / month1 Gbps$22.99/moDeploy Pro
PowerHeavy workloads1216 GB640 GB40 TB / month2 Gbps$42.99/moDeploy Power
UltraDatabases1632 GB1000 GB60 TB / month2 Gbps$65.99/moDeploy Ultra
SummitDense hosts3264 GB2000 GB100 TB / month5 Gbps$119.99/moDeploy 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

Options and upgrades · prices per month

OptionWhat you getPrice
Daily backupsSnapshots of the whole VPS+20%
Extra IPv4Per address, up to 64+$2.00
Priority supportPer VPS+$10.00
Longer billingPay quarterly or yearly−10% / −25%
Dedicated serverWhen a VPS is no longer enough: 10 Gbps, unmetered trafficfrom $64.99

FAQ

Questions people ask first.

Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.

Still unsure?

Tickets go straight to the people who run ALP1.

Contact support
Can I run PrivateBin on Debian 13 without Docker?

Yes. Debian 13 ships PHP 8.4, nginx and php-fpm, which is everything the release archive needs. Extract it into the document root, move bin, cfg, data, lib, tpl and vendor outside it, and set PATH in index.php, as the installation guide describes. You then track PHP and PrivateBin updates yourself, which is the main reason we suggest the container.

Can you read what my instance stores?

We run the hypervisor, so like any VPS host we could technically reach your disk. What we would find there is ciphertext and your logs; the keys exist only in the links your users exchange. If the logs are your concern, keep their retention short, as in the docker run command above.

Will a public instance get my VPS suspended?

Not for being public. Complaints reach you first, and we act ourselves on a decision of a competent Swiss authority or on manifestly unlawful content. The case that ends badly is an instance that keeps drawing phishing complaints while its operator does not answer, which is why the write restrictions above are worth setting up before you announce the URL.

Is 10 TB of transfer enough for a pastebin?

Yes, by a wide margin: even with every document at the maximum size, 10 TB is about a million full downloads a month (theoretical).

PrivateBin or Lufi for sending files?

PrivateBin for text, code and the occasional small attachment; Lufi for files measured in hundreds of megabytes. Both fit on one Standard VPS behind the same Caddy instance, since they share nothing except the proxy.

Do I need a database?

No. The filesystem backend is the default and suits a single VPS. A database or an S3 bucket becomes useful when you want the VPS itself to be disposable or to run more than one front end.

Sources

Every fact on this page, with its source

Consulted 6 Nov 2026 unless noted.

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.