User manual

9. Running a workspace server

This chapter is for the person who sets up the server a team shares. Using it from the app is in chapter 7.

What you need

  • A small Linux machine (1 CPU, 1 GB of memory is enough to start) with Docker installed.
  • A name for it, such as review.example.com, pointing at the machine, with ports 80 and 443 reachable so the HTTPS certificate can be issued automatically.

Install

Copy the server folder to the machine and run:

./install.sh --domain review.example.com --team "Fraud review" --owner "Your name"

The script starts the database, the server and a web server that handles HTTPS on its own, then prints an owner invite link. Open the app, go to Settings > Workspace server, paste the link under Invite link and press Join. You are now the team’s first owner. The link works once.

To try it on your own computer first:

./install.sh --local

That runs the server at http://localhost:8787, reachable from this computer only.

On DigitalOcean

Two ready-made ways to put the server on DigitalOcean. Both need a DigitalOcean account, and DigitalOcean bills you for what they create. Neither has been tested as widely as the install script above; tell us if one fails.

One click: App Platform

Deploy to DigitalOcean creates one small app that runs the server and one development PostgreSQL database. You need no machine and no domain name: DigitalOcean gives the server an HTTPS address ending in ondigitalocean.app.

  1. Follow the link, change TEAM_NAME if you like, and create the app.
  2. When the first deployment finishes, open the app’s Runtime Logs and copy the line that starts OWNER INVITE LINK:. Do this straight away; the link is printed once.
  3. In the app, go to Settings > Workspace server, paste the link under Invite link and press Join.

Keep the app at one instance. Live updates between teammates pass through the memory of a single server process, so a second instance would make them unreliable. A development database is DigitalOcean’s smallest kind; read their terms for how it is backed up before you rely on it.

A droplet you control

server/deploy/digitalocean-droplet.sh is a start-up script for a new Ubuntu droplet. It installs Docker, fetches CiteSeal and runs the same install.sh as above.

  1. Create a droplet (Ubuntu, 1 GB of memory is enough to start) and paste the script into Advanced Options > Add Initialization scripts. Set DOMAIN at the top of the script to a name that already points at the droplet, or leave it empty for a trial.
  2. Wait about five minutes, then log in over SSH as root. The owner invite link is shown at login and kept in /root/citeseal-server.txt.

With DOMAIN left empty the server gets a name made from the droplet’s address, such as 203-0-113-7.sslip.io. That works without owning a domain, but it depends on the free sslip.io service and changes if the droplet’s address changes. Use your own domain for a server your team will rely on.

What the server stores

  • An account list: names, roles, each computer’s public keys, and who is in which project.
  • Encrypted project logs and conversations. The server has no key for these. They can only be read on the computers of that project’s members.
  • A log of account changes: who was invited, who joined, who was added to which project.

It stores no documents, no AI model keys and no cloud sign-ins.

Looking after it

Task How
Back up Back up the harness-db Docker volume. The backup is unreadable without members’ computers, by design.
Update Replace the server folder with the new version and run ./install.sh again. Data and settings are kept.
Turn on single sign-on Set OIDC_ISSUER and OIDC_AUDIENCE in .env, run ./install.sh again. Invite people with their email address; they join with Sign in with your organisation’s account.
An owner lost every computer docker compose run --rm server node src/index.ts new-owner-invite prints a fresh owner link, valid for a day.
See what is running docker compose ps, and docker compose logs server or docker compose logs web.

Things to know

  • If every computer in a project is lost, that project’s shared data cannot be recovered. The server cannot read it. Keep at least two members, on separate computers, in every project that matters.
  • Removing someone stops them receiving anything new. They keep what their computer already downloaded.
  • The server operator can see team and member names, roles, project membership, when entries arrive and how large they are. Not their content.