Self-hosting

One install. Hosting, a relay, or both.

Ruze works out of the box. ruzed puts more of it under your own roof — on a Linux VPS, a Mac, or a Windows PC with a port forward — and when you install it, you choose what it does.

01

Hosting: messages for whoever’s offline

Peer to peer, a message travels while people are online. Bind a server to ruzed and it keeps the history, attachments and invites around the clock, so what’s said reaches whoever was away. You stay the owner, and if the machine goes, the server carries on without it.

02

A relay of your own

When two devices can’t reach each other directly, a relay introduces them and passes the encrypted traffic along — it can’t read it. ruzed runs one with its own certificate. Members of servers you host use it on their own, and anyone can point Ruze at it.

  1. 1
    Install ruzed

    A systemd unit on Linux, a launchd job on a Mac, an installer on Windows. Choose hosting, the relay, or both.

  2. 2
    Bind a server

    ruzed mints a host code. The server’s owner pastes it into Server settings → Hosting.

  3. 3
    Nothing else

    Members’ apps find the server there, and pick up its relay beside the public ones on their own.

Set it up On a Raspberry Pi? The guide → Free, like the app. Linux x86-64 and arm64, macOS (Apple Silicon and Intel), or Windows.

What it needs

Hosting serversThe relay
PortsUDP 11204TCP 443, TCP 80, UDP 7842
Namea DNS name, or the public IPa DNS name, for a certificate everyone trusts

Open the ports in the machine’s firewall and, at home, forward them on your router. A DNS name is highly recommended — a free dynamic DNS name does for a home connection — but not required: leave it out, and ruzed uses the machine’s public IP address.

Without a name, hosting works the same, though if the address changes, members find the machine more slowly. The relay can’t get a certificate for an address, so it makes its own: members of servers you host can still use it — their apps trust it because your machine tells them to — and nobody else can.

On Linux

A VPS, or any machine with systemd and glibc 2.28 or newer: Debian 10, Ubuntu 20.04, RHEL 8 or anything since. For 64-bit ARM, take the arm64 download instead — or, on a Raspberry Pi, follow the guide.

curl -LO https://download.ruzechat.app/v0.0.72/ruze-server-0.0.72-linux-x86_64.tar.gz
tar xzf ruze-server-0.0.72-linux-x86_64.tar.gz
cd ruze-server-0.0.72-linux-x86_64
sudo install -m 755 ruzed /usr/local/bin/ruzed
sudo ruzed init ruze.example.com   # --servers or --relay for one; no name for your public IP
sudo cp ruzed.service /etc/systemd/system/
sudo systemctl enable --now ruzed

For each server to hold here, mint a host code:

sudo systemd-run --pty -p DynamicUser=yes -p StateDirectory=ruzed \
  ruzed --config /etc/ruzed/ruzed.toml host-code

Back up /var/lib/private/ruzed. To update, install the new binary over the old one and sudo systemctl restart ruzed.

On a Mac

One download for Apple Silicon and Intel, macOS 11 (Big Sur) or newer. Fetch it with curl, not a browser: macOS won’t run an unnotarized program a browser downloaded.

curl -LO https://download.ruzechat.app/v0.0.72/ruze-server-0.0.72-macos-universal.tar.gz
tar xzf ruze-server-0.0.72-macos-universal.tar.gz
cd ruze-server-0.0.72-macos-universal
sudo mkdir -p /usr/local/bin
sudo install -m 755 ruzed /usr/local/bin/ruzed
sudo ruzed init ruze.example.com
cd "/Library/Application Support/ruzed"
sudo mkdir -p data logs && sudo chown nobody data logs && sudo chmod 700 data
cd - && sudo cp com.ruze.ruzed.plist /Library/LaunchDaemons/
sudo launchctl bootstrap system /Library/LaunchDaemons/com.ruze.ruzed.plist

It runs from boot, logged in or not, as the unprivileged nobody. Keep the Mac awake: System Settings → Energy, Prevent automatic sleeping. Mint a host code with sudo -u nobody ruzed host-code.

On Windows

Windows 10 or 11, 64-bit, on a PC that stays on. Download ruze-server-0.0.72-windows-x86_64-setup.exe and run it. It asks which of the two the machine does, then for the name (or none, for the public IP), and sets ruzed up as a service that starts with Windows. Windows SmartScreen warns about it because it isn’t code-signed: More info → Run anyway.

Mint a host code from Start → ruzed → Mint a host code, or on the installer’s last page. Back up C:\ProgramData\ruzed\data; to update, run the newer installer.

Then

Give each host code to the server’s owner, who pastes it into Server settings → Hosting in Ruze. Nobody else does anything: members’ apps find the server on your machine, and pick up its relay beside the public ones on their own.