Behind a reverse proxy or tunnel
Emberseal is designed to terminate TLS itself: in FIPS mode it only negotiates TLS 1.2 or 1.3 with AES-GCM cipher suites, which is how FIPS-approved cryptography in transit is met. If you need a load balancer, prefer one with FIPS-validated TLS in TCP passthrough mode.
You can also run Emberseal behind a reverse proxy, a WAF or a tunnel that terminates TLS (for example when it only listens on localhost and a tunnel publishes it). In that case:
- Serve plain HTTP inside. Remove
TLS_CERT_FILEandTLS_KEY_FILEfrom theembersealservice and publish the port only where the proxy can reach it (for example127.0.0.1:4342:4342). Emberseal then listens without TLS. - Keep
PUBLIC_URLand Settings → Security → External URL set to the publichttps://address. - Trust the proxy so the access trail and rate limits see real visitor addresses: add the proxy's address (as Emberseal sees it, for example the Docker gateway
172.18.0.1) to Settings → Security → Trusted proxies. Emberseal only honoursX-Forwarded-Forfrom those addresses. If requests arrive through an untrusted private proxy, the IP intelligence settings show a warning with a one-click fix. - Turn on Trust forwarded headers in Settings → Security so Emberseal knows the original request was HTTPS (secure cookies, HSTS).
- FIPS in transit then depends on the proxy: use one with FIPS-validated TLS if you need it.
Paths the proxy must not put behind its own sign-in
If your proxy adds its own authentication, exempt the paths that other systems call:
| Path | Used by |
|---|---|
^/api/v1/(messages|messages/status|messages/revoke|templates|options)$ | The webhook API (token-authenticated) |
^/api/mcp$ | MCP clients (token-authenticated) |
^/api/hooks/nightfall$ | Nightfall file-scan results (Nightfall, signature-verified) |
^/s/ and ^/api/r/ | Recipients opening their links (they have no account) |
^/api/branding, static assets | The recipient page's branding |
Anchor the patterns (^…$) so they don't match more than intended.

