Skip to main content
Self-hosting puts your organization’s chat and calls on a server you control. One organization runs on one node. Running it day to day — configuration, licensing, updates and backups — is covered in Run & maintain your node.

What you need

  • A Linux server with Docker and Docker Compose, plus bash and openssl for the setup script.
  • Three DNS names pointing at the server:
  • An email address for the HTTPS certificates (ACME_EMAIL).
  • Open ports: 80 and 443 (TCP, and 443 UDP), and for calls 7881 TCP, 7882 UDP, 3478 UDP and 5349 TCP (TURN over TLS).
  • Reachable from the internet over HTTPS. Before routing members to your node, Hushgard’s control plane checks https://DOMAIN from the internet: it must resolve to a public address, answer within five seconds and not redirect.
  • Outbound HTTPS from the server to Hushgard’s control plane (sign-in, licensing, push).

What’s in the stack

Hushgard node

The API and real-time layer for chat, calls, topics, uploads and the AI assistant.

Database & cache

PostgreSQL for durable data (including the AI assistant’s index) and Redis for presence and real-time fan-out — neither is exposed to the internet.

File storage

S3-compatible object storage (MinIO) for encrypted attachments, served at S3_DOMAIN.

Media server

LiveKit carries encrypted call audio, video and screen share, at LIVEKIT_DOMAIN.

Background worker

Delivers notifications, fans messages out to large channels and keeps the AI assistant’s index current.

Reverse proxy

Caddy issues and renews HTTPS certificates automatically for all three names.

Admin panel

The organization’s admin panel — members, moderation and settings — served by your node.

1. Get the node bundle and your credentials

After buying the Self-hosted plan on hushgard.com:
  1. Open Your organizations and sign in with the email you bought with.
  2. Download the node bundle and unpack it on your server.
  3. Choose Get credentials. The organization ID and secret appear with a ready .env snippet — the secret is shown once, and we never email it.
  4. Lost the secret, or someone saw it who shouldn’t have? Rotate secret issues a new one. The old one stops working immediately — the node turns read-only and members can’t connect until the new secret is in .env and the node has restarted.

2. Generate the configuration

The node bundle holds the node’s Docker Compose setup: docker-compose.yml, the infra/ folder (proxy and media-server configuration), the settings template env/env.prod, scripts/setup.sh and the backup and restore scripts. The node itself is the image registry.burakov.net/hushgard-node, which the stack pulls. In the bundle’s folder, run the setup script with your names:
It writes .env with strong, unique secrets and your domains (readable only by you). It refuses to overwrite an existing .env. Then add the two credential lines to .env:

3. Bring it up

The node applies its database migrations on start. The stack refuses to start if a required secret is missing, so it can’t boot with a weak default.

4. Check it’s healthy

  • https://DOMAIN/v1/health/ready answers 200 when the database, Redis and modules are ready (503 while something is degraded).
  • The node then proves its public address to the control plane and fetches its license. If the address can’t be verified, the node logs the reason and retries — see Address verification.
  • Sign in to the Hushgard app with the email you bought with — you’re the organization’s owner — then open the admin panel on your node and invite your team.

How members connect

There’s one Hushgard app for every organization — on the web, desktop, iOS and Android. You don’t ship a custom build or hand out a server address:
  1. Your node registers its public address with the control plane when it starts, and again on every license check. The control plane first verifies that the server at that address really is your node (it answers a one-time challenge with your organization’s secret), so nobody can point your members at a server of their own.
  2. A member signs in with their email and sees your invitation; they join with one tap. Nobody becomes a member of an organization without accepting.
  3. The app checks your node is reachable, then connects to it directly. Messages, files and calls flow between the member’s device and your node only.
Don’t want to run any of this? Managed is the same stack, operated for you. See Plans & buying.