Host a server
Run the server in a container or as a single Linux binary. Both use the same configuration and keep their state in one data directory.
Before you start
You need a Linux machine that clients can reach, with a local filesystem (SQLite needs file locking) and permission to run executables. Run one server per data directory, under its own system user.
Open these ports on the host firewall, and forward them if the host is behind NAT:
| Port | Protocol | Purpose |
|---|---|---|
8443 | TCP | HTTPS and secure WebSocket |
8444 | UDP | WebRTC media |
8444 | TCP | WebRTC media fallback |
Each extra media worker uses the next consecutive port. Clients on the internet need a public
address for media. Set it with media.announced_address, or the VOICE_MEDIA_ANNOUNCED_ADDRESS variable in Docker.
Deploy with Docker
The image supports AMD64 and ARM64. Every setting is optional. Put the TOML directly in VOICE_CONFIG so the whole configuration stays in your compose file; this one only
sets the server name and the public addresses clients use for signalling and media. See Configure for the rest.
services:
voice-server:
image: wardpearce/korero-server:latest
restart: unless-stopped
ports:
- "8443:8443/tcp"
- "8444:8444/udp"
- "8444:8444/tcp"
volumes:
- voice-data:/data
environment:
VOICE_DATA_DIR: /data
VOICE_CONFIG: |
[server]
name = "My Kōrero server"
registration = "invitation"
# The public IP or hostname clients use for HTTPS/WSS.
public_addresses = ["203.0.113.10"]
[media]
# The public IP or hostname clients can reach the media port on.
announced_address = "203.0.113.10"
volumes:
voice-data:Inline TOML is recognised when it begins with a section header or comment. Edit the compose
file and run docker compose up -d to apply changes.
Start the server and read the log for the endpoint, fingerprint and setup token.
docker compose up -d
docker compose logs voice-serverThe named volume keeps the database and TLS identity. The container runs as UID and GID 10001.
If you use a bind mount instead, make that user the owner of the directory first. For IPv6,
enable it on the host and the Docker network, and set media.announced_ipv6 in VOICE_CONFIG.
If the setup token expires before you claim the server, stop it, create a new token and start it again.
docker compose stop voice-server
docker compose run --rm --no-deps voice-server admin setup-token --yes
docker compose up -dTo build the image yourself, clone the repository and run docker compose up -d --build from its root.
Deploy the binary
Each release attaches standalone Linux AMD64 and ARM64 executables and a SHA256SUMS file. The binary embeds its runtime and media worker. The host needs glibc,
libstdc++ and OpenSSL 3.5.9 or newer shared libraries.
- Download the binary for your architecture and
SHA256SUMSfrom the latest release. - Verify and make it executable.
sha256sum --ignore-missing -c SHA256SUMS chmod +x voice-server-linux-amd64 - Create a dedicated user and data directory.
sudo useradd --system --home /var/lib/korero --create-home korero sudo install -m 0755 voice-server-linux-amd64 /usr/local/bin/voice-server - Run it. On first start it creates the data directory, a Lobby channel, a TLS identity and a
setup token.
sudo -u korero voice-server --data-dir /var/lib/korero
To keep it running, add a systemd unit at /etc/systemd/system/korero.service.
[Unit]
Description=Kōrero voice server
After=network-online.target
Wants=network-online.target
[Service]
User=korero
ExecStart=/usr/local/bin/voice-server --data-dir /var/lib/korero
Restart=on-failure
Environment=VOICE_MEDIA_ANNOUNCED_ADDRESS=203.0.113.10
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable --now korero
journalctl -u koreroClaim the server
The first start prints the local signalling address (for example 192.168.1.100:8443), the TLS public-key fingerprint and a one-time setup token.
If you set server.public_addresses, it also prints a Public endpoint — share that one with remote clients. The token lasts 15 minutes by default. Treat the
logs as sensitive until you have used it.
- Open Kōrero and choose Connect to server.
- Enter the address (the
Publicone if configured) and compare the fingerprint with the one in the log. - Enter the setup token to create the first owner.
Share the address and fingerprint with other people over a channel you trust. Their app checks the fingerprint before sending any credentials.
Configure
Every setting is optional. Start from server.example.toml and put the TOML inline in VOICE_CONFIG in Docker. When running the binary, save
it as server.toml in the data directory. Restart to apply changes.
Any setting can also be an environment variable named VOICE_<SECTION>_<KEY>, such as VOICE_SERVER_PORT. Environment variables win over TOML. Validate
the configuration before you restart.
# Binary
voice-server --config ./server.toml config validate
# Docker
docker compose run --rm voice-server config validateSettings most servers change first:
| Setting | What it does |
|---|---|
server.name | The name clients display. |
server.registration | Who can create accounts: open, invitation, admin or disabled. |
server.password | A shared password for new sign-ins. |
server.public_addresses | The public IP or hostname clients use for signalling; also added to TLS SANs. |
media.announced_address | The public IP or hostname in media candidates. |
messaging.persistence | Keep message history for one week. On by default. |
media.target_audio_bitrate | Voice quality, from 32 to 128 kbit/s. |
TLS and proxies
The server always uses HTTPS. Choose how it gets its certificate with tls.mode.
self-signedis the default. The server generates and renews a certificate, and clients pin its public key.manualloads your PEM files fromtls.certificateandtls.private_key. The key must be readable only by the server user.proxylets a reverse proxy terminate TLS. List its exact addresses inserver.trusted_proxies, keep the server on a private interface and forward WebSocket upgrades. The proxy must overwriteX-Forwarded-For.
A proxy carries signalling only. Clients still need to reach the media port directly, over UDP or TCP.
Back up and restore
Stop the server, then write a backup to a new directory outside the data directory. The backup holds your database, configuration and keys, so keep it private.
voice-server --data-dir ./data backup --output ./voice-backupWait for BACKUP_COMPLETE before you archive the directory. To restore, stop the
old instance, copy the backup into an owner-only directory and point --data-dir at it. Reapply any environment overrides, and check that the fingerprint
matches what clients already trust.
Build from source
You need Bun 1.4.5, a Linux toolchain and OpenSSL 3.5.9 or newer development files. On Debian 13:
sudo apt-get install build-essential ca-certificates libssl-dev meson ninja-build pkg-config
cd backend
bun install --frozen-lockfile --ignore-scripts
bun run buildThe result embeds the media worker and downloads nothing at startup. More detail is in the deployment guide.