Termsheep Cloud is coming soon.Cloud is coming soon.Join the waitlist →

Configure TLS and a proxy

Keep the platform private behind HTTPS and trust forwarded addresses only from your proxy.

On this page

Use the arrow keys to scroll the table.

Verify private setup first

Follow the quick start on loopback. After creating the owner and saving the Emergency Kit, open /signup in a separate signed-out session. Continue once it redirects to sign-in. The first registration on an uninitialized instance grants ownership.

Route the HTTPS origin

Point DNS at the proxy. For the source stack and its bundled Caddy profile, set these values in the installation's .env using your domain:

TERMSHEEP_DOMAIN=sheep.example.com
TERMSHEEP_PUBLIC_URL=https://sheep.example.com
TERMSHEEP_TRUST_PROXY=true

Keep the installation’s COMPOSE_FILE entry and run from the same directory. An external pepper needs the same override after the handoff.

Run docker compose --profile tls up -d --wait. Ports 80 and 443 must reach Caddy. Keep its caddy data volume for certificates. Leave the backend on loopback.

For release Compose, terminate HTTPS at a separate proxy on the same host. Point it at the platform's loopback port. Set the same public origin and proxy-trust settings in .env. Keep the complete release file list in COMPOSE_FILE and run docker compose up -d --wait platform from the installation directory before enabling the proxy route. If the proxy is remote, restrict backend reachability to that proxy alone.

Verify the handoff

Forward HTTP and WebSocket upgrades and allow request bodies up to 48 MiB. Forward the client address using X-Forwarded-For. With trust enabled the server uses the closest proxy's appended entry. Restrict direct access to the backend before enabling trust.

Check the certificate and /healthz over HTTPS. Sign in, exercise live sync and create a test invitation. Verify that its link uses the final HTTPS origin. Use that origin in the desktop settings.