Skip to content

Quick Start ​

Run your own Dissent node on any VPS in under 10 minutes.

Prerequisites ​

  • A VPS running Ubuntu or Debian (2 vCPU, 2 GB RAM recommended — ~$10–20/mo on most providers)
  • A domain name with an A record pointing to your server's IP address
  • The ports below open in your firewall

Ports ​

Chat needs two of these. Voice and video need all of them, and the UDP media port is the one people forget.

PortProtocolUsed for
80TCPLet's Encrypt certificate validation — required even though your site is HTTPS
443TCP + UDPThe API, WebSocket and web client. UDP is HTTP/3
7882–7899UDPWebRTC media (7882) and the built-in TURN relay (7883–7899). Voice and video do not work without this
7881TCPWebRTC over TCP — the fallback when UDP is blocked on the client's network

Choosing a provider

Any VPS provider works. OVHcloud, DigitalOcean, Hetzner, Vultr, and Linode are all solid choices. The project's own node runs on an OVHcloud VPS-1 in the US; Hetzner offers the best price/performance in the EU.

Running at home instead of on a VPS has a real catch around that UDP port — see Home Server & Raspberry Pi.

Provider firewalls ​

The setup is identical on every provider. What differs is where the firewall lives — some providers have one in their web panel on top of the server's own. If chat works but voice connects and stays silent, a panel firewall blocking the UDP ports is the usual cause.

ProviderPanel firewallWhat to do
Hetzner, OVHcloud, DigitalOcean, Vultr, LinodeOptional, off unless you add oneNothing — or, if you add one, allow every port in the table above
AWS (Lightsail / EC2), Google Cloud, AzureOn — security group / firewall rulesAdd the ports above as inbound rules
Oracle CloudOn, twice: the VCN security list and iptables rules inside Oracle's Ubuntu imageAdd the ports to the security list, then allow them in iptables on the server (Oracle's image rejects everything but SSH)

Two choices to avoid when ordering:

  • IPv6-only servers (some providers offer them cheaper): people on IPv4-only networks could not reach your node. Keep the public IPv4 address.
  • "NAT VPS" plans that share one IP between customers: you cannot open the ports above.

Both Intel/AMD and ARM servers work — the node image is built for both.

Setup ​

You do not need a copy of the source. The node ships as a container image; these four files are the whole install.

1. Download the installer

bash
curl -fsSL https://docs.dissent.chat/install/fetch.sh -o fetch.sh
sh fetch.sh
cd dissent-node

That fetches docker-compose.yml, Caddyfile, setup.sh and env.example — and then stops, so you can read setup.sh before running it.

Why this is two commands and not one

You will find projects that tell you to pipe a downloaded script straight into a shell. We would rather you read what you are about to run on a machine you are about to put on the internet.

2. Run the setup script

bash
bash setup.sh

The script will:

  • Check Docker is installed, and offer to install it where it safely can
  • Ask for your domain name
  • Ask whether to connect to the wider Dissent network (yes by default — no makes a private island)
  • Generate secrets automatically — including the at-rest encryption keys
  • Pull the node image and start the stack
  • Claim the node as your administrator account before anything is exposed
  • Confirm the node is healthy by reading its /health response

Running on a NAS

Synology DSM, QNAP, Unraid and TrueNAS SCALE all work. Install Docker first from your NAS's own package manager — on Synology that is Package Center → Container Manager — then run setup.sh over SSH. The script detects DSM and will not try to install Docker itself, because the generic installer does not support it.

The first account is the administrator

setup.sh claims the node for you before it starts Caddy, and that ordering is deliberate. Requesting a certificate publishes your hostname to public Certificate Transparency logs within seconds, and those are routinely scanned. On an unclaimed node the first account to register becomes its administrator — so the window between "reachable" and "claimed" is one you do not want to exist.

Back up .env before you do anything else

The installer generates MESSAGE_ENC_KEY and PLUGIN_CONFIG_KEY, and your database is encrypted with them. A database backup without those keys restores to data nobody can read — including you. Copy .env somewhere off the server now, and see Backups & Restore.

3. Sign in

Open https://your-domain.com — your node serves the app itself. Choose Sign in and enter the administrator username and the 24-word recovery phrase the installer printed. You already have an account; don't register a new one.

4. Bring your friends in

Create a server, then use its Invite button and send the link. By default a new node lets people with an invite make an account — the link is all a friend needs. Change who can sign up in Node Admin → Settings → Who can make an account here: people with an invite, anyone, or nobody new.

Switching later

Once signed in, the same choice lives in User Settings → Account → Node: the public nodes, a field for any other node URL, and a health check on each.

Switching signs you out, and the app says so before it acts. A session belongs to the node that issued it, so there is no way to be signed in to two nodes at once — and nothing on the node you leave is deleted.

Updating ​

Your node updates itself by default. setup.sh adds an hourly check on the machine (a systemd timer, or a line in your crontab). It installs a new release only when all of these hold:

  • the release has been out for 3 days and has not been marked bad;
  • it is 4 am in your timezone (choose the hour and timezone in Node Admin → Overview → Updates);
  • nobody is in a voice call (otherwise it tries again the next night);
  • the node runs a release, not a development build.

Prefer to do it yourself? Node Admin → Updates → Tell me only. You then see a banner when a release is out (your browser checks docs.dissent.chat/install/latest.json while you have Node Admin open). Node Admin also shows when the machine last checked and how the last update went.

To update by hand, on the machine running the node, in the folder you installed into:

bash
bash update.sh           # newest release
bash update.sh 0.4.0     # or a specific one

It finds your running node and the exact compose files it was started with (including behind-proxy mode), gets the new image, backs up the database and .env into ./backups/, restarts everything, waits until the node is healthy and serving the new web client — and puts the previous version back if any of that fails. Database migrations run on startup. Automatic updates do exactly the same steps.

  • A failed download changes nothing.
  • It refuses to go to an older version: migrations only go forward.
  • It never deletes backups — clear out ./backups/ yourself.
  • The hourly check logs to ./logs/auto-update.log. Remove it with bash update.sh --remove-timer; add it back with bash update.sh --install-timer. On a Synology without crontab, --install-timer prints the Task Scheduler line to add.
  • Installed before automatic updates existed? Fetch the new update.sh next to setup.sh, then run it once by hand — that adds the hourly check: curl -fsSLO https://docs.dissent.chat/install/update.sh && bash update.sh

Mixed versions ​

Not every node updates on the same day, so the network makes one promise: every node release keeps working with nodes whose code is up to 6 months older. Node Admin → Updates lists the nodes you talk to that are further apart than that; nothing is cut off on its own, but messages between you may stop working until the older one updates.

Troubleshooting ​

The installer waits two minutes for the node to answer, and it tells you which kind of failure it hit — the two look identical from the outside and have nothing in common underneath.

What the installer printedCauseFix
Nothing answered at https://…/healthYour A record does not point at this server yet, ports 80/443 are blocked, or Caddy could not get a certificateCheck the A record resolves to this server's IP, open 80 and 443, then re-run bash setup.sh
Something answered, but it was not the API (followed by a snippet of HTML)The request reached a web server but never reached the nodeCheck the /health route in your Caddyfile. Caddy falls through to index.html, so a misrouted path returns a page, not an error
docker: command not found after installDocker install requires a new shell sessionRun source ~/.bashrc or log out and back in, then re-run bash setup.sh
Certificate error in browserCaddy couldn't obtain a TLS certEnsure port 80 is open — Let's Encrypt validates over it, even for an HTTPS certificate

Logs for anything else:

bash
docker compose logs api

Next Steps ​

Your users can download everything the node holds about them from Settings → Account → Your data — worth knowing before somebody asks you for it.

Push notifications ​

Web push works out of the box. setup.sh generates VAPID keys for you; if you installed by hand, generate them with docker compose run --rm gen-vapid and append the two lines to your .env before starting the API.

Push on the shipped Android app does not work against a self-hosted node, and this is not something you can configure. The published APK is built against this project's Firebase project, so those installs register for push under that project — your node has no credentials to send to them, and setting FIREBASE_SERVICE_ACCOUNT_JSON on your node cannot change which project a client you did not build is registered with.

Everything else on Android works normally against your node; only background push is affected, and messages arrive as soon as the app is opened. Building your own APK with your own google-services.json is the only way to change this.