Skip to main content

Configuration reference

All settings live in the node’s .env (generated by the setup script — see Install a self-hosted node). Restart the stack after changing them. Organization-level policy — retention, metadata-minimal mode, modules, guests — is set in the admin panel, not here.

Licensing states

The node runs on a signed license that it refreshes with the control plane about once a day; it can’t be forged or extended on the server. Members see a banner when the organization isn’t fully active. Nothing is ever deleted. Renewing restores full use with the same organization, ID and secret. See Plans & buying.

Address verification

When the node starts — and on every license check — it registers NODE_PUBLIC_URL with the control plane, which checks that the address really is your node before routing members to it. If that fails, the node logs one of these reasons and retries after 1, 5, 15 and 60 minutes: Moving to a new domain? Update DNS and NODE_PUBLIC_URL, then restart. Once the new address is verified (usually within a minute), members’ apps follow it on their next refresh, with no data lost.

Health checks

  • GET /v1/health — the API is up.
  • GET /v1/health/ready — the database, Redis and modules are ready (503 when something is degraded).
  • GET /v1/license/status — the license state.
The admin panel’s footer shows a health indicator for the database, Redis and file storage.

Updates

You’re notified when a new version of the node is released. To update, pull the new image and restart the stack:
Database migrations run automatically when the node starts. When a release also changes the bundle’s own files — docker-compose.yml or infra/ — download the updated node bundle from Your organizations and apply those changes too.

Backups

The node bundle includes backup and restore scripts in scripts/. A backup covers everything needed to bring the node back:
  • a dump of the database,
  • the attachments in file storage, and
  • your .env file — it holds the node’s secrets and your organization’s credentials.
Schedule the backup script to run regularly (for example with cron) and keep copies off the server. Messages and files are stored encrypted, but the database also holds membership and metadata — keep backups as private as the server itself.

Restore

  1. Prepare the server as for a new node — DNS names, open ports and the unpacked node bundle (see Install a self-hosted node). Don’t run the setup script: the backup brings its own .env.
  2. Run the restore script with your backup.
  3. Start the stack with docker compose --profile prod up -d and check that https://DOMAIN/v1/health/ready answers 200.

Rotating the organization secret

Rotate secret on Your organizations issues a new secret, and the old one stops working at once: the node turns read-only until you put the new HUSHGARD_ORG_SECRET in .env and restart.

Calls behind NAT and firewalls

Calls use the bundled LiveKit media server at LIVEKIT_DOMAIN, with its built-in TURN relay on UDP 3478, TURN over TLS on TCP 5349, and a TCP fallback on 7881.
  • Behind NAT, set the server’s public IP as rtc.node_ip in infra/livekit.yaml.
  • Strict networks: TURN over TLS on TCP 5349 lets calls through networks that block UDP and the media ports.

AI assistant models

The AI assistant module needs an OpenAI-compatible model endpoint configured on the node: Restart the node, make sure the module is in your license, then choose Provision AI worker in the admin panel’s Settings.

What depends on the control plane

Identity (passwordless sign-in), the directory of which organizations people belong to, the public encryption-key directory, high-security device certificates, push notifications and licensing are brokered by Hushgard’s control plane, so accounts work across devices and organizations. Your content — messages, files and calls — stays on your node. See Privacy & your data.