Deploy PrivateBin

Zero-knowledge encrypted pastebin with expiring share links

Deploy PrivateBin

Just deployed

/srv/data

Deploy and Host

Deploy on Railway

PrivateBin paste form

PrivateBin is a minimalist, open-source online pastebin where the server has zero knowledge of pasted data — text is encrypted and decrypted in the browser using 256-bit AES, so the server never sees the plaintext. This template ships PrivateBin 2.1.1 (Zlib license) pinned by digest as a single service with pastes on a persistent volume — no database, no accounts, no setup — so the deploy form has zero fields.

About Hosting

One click deploys a single PrivateBin service with a persistent volume at /srv/data. Pastes and comments live on the volume — no separate database service to wire up. The first boot lands straight on the working paste form; there is nothing to configure. Railway's injected PORT is honored on every boot, the rate limiter reads the real visitor IP from X-Forwarded-For, and the public URL is derived from the live domain.

What gets deployed:

  • privatebin — PrivateBin 2.1.1 (nginx + PHP-FPM 8.5) with filesystem storage, volume /srv/data

Why Deploy

  • Zero-knowledge by design: pastes are encrypted in the browser with 256-bit AES — the server stores ciphertext only.
  • Zero-fuss start: no database, no accounts, no wizard — the first boot is already a working pastebin.
  • Always-on by design: the pastebin runs continuously, so your links stay live.

Common Use Cases

  • Share code snippets, logs, or config with a link that expires on its own.
  • Pass secrets or credentials to a teammate without leaving them in chat history.
  • Host a team pastebin with discussion, password protection, and burn-after-reading.
  • Replace a public paste service with one where the server never sees plaintext.

Dependencies for PrivateBin Hosting

  • The privatebin service with a volume at /srv/data, created by the template. A custom domain is optional.

Deployment Dependencies

SettingValue
RuntimePrivateBin 2.1.1 (nginx + PHP-FPM 8.5 on Alpine)
PlanHobby; one service
PortRailway's injected PORT, honored on every boot (default 8080)
PersistenceOne Railway volume at /srv/data
Healthcheck/ (paste form, unauthenticated 200 when nginx + PHP-FPM are up)
VariableValueNotes
PORT(injected by Railway)nginx is remapped to it on every boot
RAILWAY_PUBLIC_DOMAIN(derived at boot)PrivateBin's basepath is re-derived from it on every boot
CONFIG_PATH/srv/cfgBaked in the image; where PrivateBin reads conf.php

Pinned in conf.php (baked into the image): Filesystem model, pastes at /srv/data, 10 MB size limit, 1-week default expiry (5 min – 1 year + never), discussion and password protection on, file upload off, rate limit 10 s per IP keyed on X-Forwarded-For.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
Time-series analytics on PostgreSQL: fast, familiar, scalable.

Rakit
2
View Template
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0