Your own server
The Quesk sync server stores the encrypted data of accounts and passes changes between their devices. It can run on any host with Docker: the repository has a Compose file that runs the server behind Caddy, which gets and renews the TLS certificate.
What you need
Section titled “What you need”- A host with Docker and Docker Compose, with ports 80 and 443 (TCP, and UDP for 443) open to the internet.
- A domain name for the server, such as
sync.example.com, whose DNS record points straight at the host. With a proxy in front (a CDN, for example), the certificate is not issued and the server sees the proxy’s address instead of the devices’. - A checkout of the Quesk repository: the image of the server is built from it.
Start the server
Section titled “Start the server”From the root of the checkout:
BRAINDUP_DOMAIN=sync.example.com docker compose -f server/bin/compose.yaml up -d --buildBRAINDUP_DOMAIN is required: it is the name devices reach the server by. Compose builds the
image of the server and starts two containers:
caddyserves 80 and 443 and hands every request on to the server;serverlistens only on a small network of its own, shared with Caddy, and trusts Caddy’s address alone for the addresses of devices.
The server runs as a user of its own, with a read-only file system and no extra privileges.
Registration and invitations
Section titled “Registration and invitations”A new server is closed: it creates an account only with an invitation, the first one too. To invite someone, run on the host:
BRAINDUP_DOMAIN=sync.example.com \Compose needs BRAINDUP_DOMAIN for every command, this one too. The command prints the invite
code, and nothing else, on its standard output. The code is good
for seven days and for one account under that email. The person types it in Invite code when
creating the account in Quesk, with Custom server… set to https://sync.example.com.
An invitation creates no account and holds no key: it only says that this email is expected. The server cannot create an account for anyone, because the master password never leaves the device.
To let anyone who reaches the server create an account, start it with registration open:
BRAINDUP_REGISTRATION=open BRAINDUP_DOMAIN=sync.example.com \ docker compose -f server/bin/compose.yaml up -d --buildData and backups
Section titled “Data and backups”All data of the server lives in one SQLite file in the Compose volume braindup_data, mounted at
/data in the container. It holds the OPAQUE setup of the server and the records of every
account. Back it up, and keep the backup encrypted.
Caddy keeps its certificates in the volumes braindup_caddy-data and braindup_caddy-config.
Update
Section titled “Update”Bring the checkout up to date, then run the same command again. Compose rebuilds the image and restarts what changed:
BRAINDUP_DOMAIN=sync.example.com docker compose -f server/bin/compose.yaml up -d --build