Language: English

Self-hosting

PrivacySafe Locker is free software under the GNU AGPL v3 or later. You can run your own.

Requirements

A fresh server running Ubuntu 24.04 or 26.04 LTS, Debian 13 or Debian unstable, or Trisquel 12; DNS records for your domain and its www. alias; ports 80 and 443 open; and SSH access. Docker is supported too.

Install

sudo ./install.sh

The installer asks for your main domain (for example privacysafe.example), whether to also serve the www. alias, which redirects to the main domain, and an email address for certificate notices. It checks the server first and changes nothing if a check fails, installs and verifies everything, and shows the onion address at the end. See deploy/FRESH_OS_INSTALL.md in the source for unattended installs and every option.

What it sets up

  • Locker as a service account, storing encrypted Lockers in a randomly named private folder inside the data directory (default /var/lib/privacysafe-locker; choose with --data-dir, and the application location with --prefix). The folder is created once at installation and never renamed.
  • nginx or Apache, hardened: TLS 1.3 only, HSTS, unknown names and the bare IP address refused, strict security headers and access logs off.
  • A Tor onion site for the whole of Locker, advertised to Tor Browser.
  • Certificates from Let's Encrypt, renewed automatically.
  • Updates: every package is updated first, nginx and tor come from their own projects, and security updates then install automatically, the Node.js runtime included.
  • Cleanup of expired Lockers.

Configuration

Settings live in server.conf: retention, file sizes, rate limits, short links, access, plans, the WordPress plugin connection, the address of the help guides, and the onion addresses of linked sites, used for visitors who come over Tor. See docs/CONFIGURATION.md in the source.

Administration is over SSH with privacysafe-locker-admin; see Administration.

Get the source

The source code is at github.com/PrivacySafe/privacysafe-locker (opens in a new tab), under the GNU AGPL v3 or later.

Nearby (experimental)

Nearby is an experimental feature and is disabled by default. To make it available for testing, set "nearby": {"enabled": true} in the server configuration and restart the server. Each device must still explicitly enable it in Local Transfer. Do not enable it for an onion-only service.

This page is licensed under CC BY-SA 4.0. PrivacySafe Locker is free software under the GNU AGPL version 3 or later; see License.