Set up HTTPS

Set up HTTPS

Insignal serves only over HTTPS. The caddy container ends HTTPS on ports 80 and 443 and passes requests to the server. You choose the certificate at install time.

Option 1: Let’s Encrypt (default)

Leave out --tls-cert and --tls-key. Caddy gets a certificate from Let’s Encrypt and renews it on its own.

This needs:

  • a public DNS record for the domain, pointing at the machine, before you install;
  • ports 80 and 443 reachable from the internet;
  • outbound HTTPS to acme-v02.api.letsencrypt.org.

Caddy asks Let’s Encrypt without a contact email, so your admin’s address is not shared.

Option 2: Your own certificate

Use this when the machine is not reachable from the internet, or your company issues its own certificates.

sudo insignal install --license acme.lic --domain insignal.example.com \
  --tls-cert fullchain.pem --tls-key privkey.pem
Flag File
--tls-cert The certificate chain, PEM. Put the server certificate first, then any intermediates
--tls-key The private key, PEM

The install copies both into /opt/insignal/tls/ as cert.pem and key.pem. The key file is readable by root only. The DNS name does not need to resolve publicly, but the people who use Insignal must reach it, and their browsers must trust the certificate.

You renew this certificate yourself. To replace it, copy the new files over the old ones and restart Caddy:

sudo install -m 0644 fullchain.pem /opt/insignal/tls/cert.pem
sudo install -m 0600 privkey.pem /opt/insignal/tls/key.pem
cd /opt/insignal && sudo docker compose restart caddy

The CLI has no command for this step yet.

The public address

The install sets INSIGNAL_PUBLIC_URL to https://<your domain>. The server accepts changes to data only from that origin, and refuses to start with plain http for any host other than localhost.

The CLI has no command to change the domain. To move to a new domain, restore a backup on a machine with the new domain. See Back up and restore.

Another proxy in front

The CLI runs Caddy on ports 80 and 443 and has no option to turn it off or move it to other ports. If a load balancer or proxy sits in front, it must send traffic for the domain to those ports on the machine.