Skip to content

Self-host a Hub

A Hub does one thing: it relays ciphertext between your devices. It cannot see the content, so where it runs does not change who can read your data.


The official Hub is used by default: it only stores and forwards ciphertext and cannot read it. You can also run your own; the deployment bundle is in the repository.

1Get the deployment bundle

The bundle is in the repository under hub/deploy: container orchestration, a service unit for running without containers, and a description of every setting.

2Prepare a machine with a public address

Give it a domain name. Devices need to reach it through two entrances:

EntrancePurposeRequirement
443 / TCPlogin, ciphertext sync and relayingmay sit behind a tunnel or a reverse proxy
7842 / UDPhelps devices find a direct path to each othermust be reachable directly; without it sync still works, entirely relayed by the Hub

3Start it and check

Follow the bundle's instructions: fill in the address devices will use to reach it, then start it. The differences between the three entrance setups are described there too. Once it is running, confirm it is online:

Replace the address with your Hub:

Terminal
curl -fsS https://hub.example.com/healthz

4Point your devices at it

Terminal
qz login --hub https://hub.example.com

Log every device in to it, then pair them as described in More devices.

License

The Hub is licensed AGPL-3.0-only. Everything else is Apache-2.0.