Configure a reverse proxy
Who configures the proxy?
Section titled “Who configures the proxy?”For managed SaaS, ask the service operator to configure the proxy. Organization administrators should not need access to the server’s proxy settings or TLS keys. For on-premises, dedicated or hybrid installations, the operator of the source server configures its incoming proxy. A working push gateway does not prove that the source server’s HTTPS route is configured correctly.
For a carrier or reseller deployment, document who operates the public endpoint, who operates the source server, which addresses the server sees from the proxy, and who renews the certificate. A customer domain still needs a matching HTTPS certificate and correct routing to the customer’s organization.
Trust the actual proxy addresses
Section titled “Trust the actual proxy addresses”Clients must connect over HTTPS. An internal HTTP connection from the proxy to
the source server is supported only when the backend is protected from direct
client access. The proxy must report the original client address and protocol
using X-Forwarded-For and X-Forwarded-Proto.
Trust only the proxy addresses as seen by the source server, accounting for NAT and the internal network. These can differ from the public proxy address. Do not trust every address to make an error disappear: client-supplied headers could otherwise misrepresent an address or claim a connection used HTTPS.
For a standard installation, configure /etc/zulip/zulip.conf:
[loadbalancer]ips = 192.0.2.10192.0.2.10 is an example; replace it with the actual proxy address. Separate
multiple addresses or supported CIDR ranges with commas. As root, apply the
configuration with /home/zulip/deployments/current/scripts/zulip-puppet-apply,
then run /home/zulip/deployments/current/scripts/restart-server.
These commands change and restart a running installation; use its maintenance
procedure and retain the previous configuration for rollback.
For an automatically configured Docker installation, use LOADBALANCER_IPS
in the container environment. For Helm, use
zulip.environment.LOADBALANCER_IPS in the release’s values. Apply the change
through that deployment’s normal rollout procedure. With manually managed
configuration, check the effective [loadbalancer] settings rather than assuming
that an environment variable has been applied.
Use HTTP only on a protected backend
Section titled “Use HTTP only on a protected backend”If TLS terminates at the proxy and the protected backend uses HTTP, a standard installation also needs:
[application_server]http_only = trueApply the configuration and restart using the standard installation procedure above. This does not permit public clients to connect over HTTP. The public endpoint remains HTTPS, and the trusted proxy must send the correct protocol. Incorrect protocol forwarding can cause repeated redirects.
Interpret configuration errors
Section titled “Interpret configuration errors”- No proxy configured and no proxy headers: provide an HTTPS endpoint and configure the trusted proxy before exposing the HTTP backend.
- Proxy headers received with no trusted proxy: confirm the sender is your proxy, then add its actual source address to the proxy settings.
- Missing X-Forwarded-Proto: configure the trusted proxy to report the original client protocol. Do not accept the client’s unverified value.
- Request from an unexpected address: check NAT, load-balancer replicas and routing. Add an address only after verifying it belongs to your proxy.
The diagnostic page may contain request headers. Before sharing it with support, remove cookies, authorization values, tokens and personal data.
Verify the route
Section titled “Verify the route”Check the effective configuration, then use a test account through the intended public HTTPS address. Verify sign-in, redirects, live message updates and file uploads. Confirm that the backend’s HTTP port cannot be reached directly by clients outside the intended trusted network. Check certificate renewal and the route after a controlled proxy rollout; a successful local template test does not prove network behavior.
Customer-owned keys and closed networks
Section titled “Customer-owned keys and closed networks”When the customer owns the domain or TLS key, agree who issues, stores, rotates and revokes the certificate. Keep private keys in the operator’s protected secret storage, never in public brand profiles or generated association files. TLS keys are separate from storage BYOK/KMS, backup decryption keys, SMTP, APNs and Firebase credentials. TLS termination does not provide end-to-end message encryption.
In a closed network, use an internal endpoint and a certificate trusted by the clients. Confirm that identity providers, media services and other required routes are reachable under the deployment’s network policy.