What you need
-
A Linux server with Docker and Docker Compose, plus
bashandopensslfor the setup script. -
Three DNS names pointing at the server:
-
An email address for the HTTPS certificates (
ACME_EMAIL). -
Open ports:
80and443(TCP, and443UDP), and for calls7881TCP,7882UDP,3478UDP and5349TCP (TURN over TLS). -
Reachable from the internet over HTTPS. Before routing members to your node, Hushgard’s control plane checks
https://DOMAINfrom 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:- Open Your organizations and sign in with the email you bought with.
- Download the node bundle and unpack it on your server.
- Choose Get credentials. The organization ID and secret appear with a ready
.envsnippet — the secret is shown once, and we never email it. - 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
.envand 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:
.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
4. Check it’s healthy
https://DOMAIN/v1/health/readyanswers200when the database, Redis and modules are ready (503while 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:- 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.
- 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.
- 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.