Why proxying Jitsi XMPP and colibri websockets decides whether meetings work
If you put Jitsi Meet behind nginx, a load balancer or a WAF, your web server must proxy the xmpp-websocket and colibri websocket paths correctly, or meetings will load but fail to connect properly. The web tier is not just a file server in this design. It is the only public entry point for two live channels that carry the conference itself, so a proxy rule that is missing, mistyped or stripped by a security product breaks the meeting even when the web page appears to load.
The components behind those paths are the web server serving the web app, the Prosody XMPP server, Jicofo (the conference focus) and one or more Jitsi Videobridge media routers, per the Jitsi self-hosting quick start. Browsers reach Prosody for signalling through the xmpp-websocket path, and they reach the videobridge for its channel through the colibri websocket path. Media itself travels separately over UDP, so a proxy only affects the signalling and bridge control traffic, which is exactly why the failure can look partial.
This matters for any deployment with a non-default front end, including a reverse proxy you already run for other applications, a cloud load balancer, or a WAF that inspects WebSocket upgrades. Before you change anything, confirm with your front-end vendor that WebSocket upgrades pass through, that the path rules match the names your Jitsi version uses, and that the appliance does not buffer or time out long-lived connections. Check the exact paths against your installed release and the Jitsi handbook, since they are the details that decide whether the meeting works.
Proxy design options and when each fits
This table compares the default web server configuration from the Jitsi install, a custom reverse proxy or load balancer in front of it, and a WAF in the request path. Read each row to see what must be proxied for signalling and bridge channels, how client IP and timeouts behave, and when the option fits. The main takeaway is that every added hop needs its websocket paths and timeouts verified, and WAF rule behavior should be confirmed with the vendor.
| Option | What must be proxied | Effect on client IPs and timeouts | When it fits |
|---|---|---|---|
| Default web server config | The XMPP websocket path and the colibri websocket path, on the same host and port as the web app | Connections come straight from clients, so source IPs reach Jitsi unchanged; timeouts are the web server defaults set by the install | Single server deployments where one host terminates TLS and no other proxy sits in front |
| Custom reverse proxy or load balancer | Both websocket paths, with upgrade headers passed through, plus the web app routes | Client IPs are replaced by the proxy address unless forwarding headers are configured and trusted; idle websocket timeouts must exceed the signalling keepalive interval | Multi-host setups, existing shared edge infrastructure, or TLS termination managed centrally |
| WAF in the request path | Both websocket paths must be allowed through the WAF, not only the web app | The WAF may inspect or rewrite websocket upgrades and close idle sessions on its own timer; confirm rule behavior and timeouts with the vendor | Organizations that require a WAF for all public services and can add explicit exceptions for the Jitsi paths |
| Any proxy with TURN or TCP 443 fallback | Only the web and websocket traffic; TURN and media ports bypass HTTP proxies | Media traffic does not pass through the HTTP proxy, so proxy logs will not show call media | When media ports are handled separately and the HTTP proxy only carries signalling |
Configuring the proxy rules step by step
This sequence takes a reverse proxy from its default Jitsi web server configuration to one that carries the XMPP and colibri websocket paths without dropping long-lived sessions. Each step ends with a browser check so the proxy team can confirm the change before moving on.
Confirm the installed web server configuration
Before editing anything, the platform engineer reviews the web server configuration that the Jitsi package or Docker web container installed, including the site file for the meeting domain and the location blocks that serve the websocket paths. Record which file holds the rules, which web server version runs in front, and whether a separate proxy or load balancer already sits in front of it. Ask the Jitsi handbook's current notes on the reverse proxy setup to confirm the expected paths for your release. The step is done when you have a written map of every location block that touches the signalling or bridge channels.
Locate the websocket location blocks
Find the location blocks that match the xmpp-websocket path and the colibri websocket path for the bridge channel. Each block should proxy to the correct upstream, which is the Prosody websocket listener for signalling and the videobridge for colibri. Check that no earlier, broader location block captures these paths and sends them to the static file handler. The output is a short list of paths and their upstream targets, which you compare against the handbook before changing any rule.
Pass the Upgrade and Connection headers
Websocket connections start as an HTTP request that asks the server to switch protocols. The proxy must forward the Upgrade header from the client and set the Connection header to upgrade on the upstream request, and it must use HTTP/1.1 toward the upstream. Without these lines the handshake returns an ordinary HTTP response and the websocket never opens. Reload the configuration after the change, then open the meeting in a browser with developer tools on the Network tab. The check passes when the websocket entries show a 101 Switching Protocols status rather than a 400 or 200 response.
Set read and send timeouts for long-lived connections
Signalling and bridge websockets stay open for the whole meeting, so default proxy timeouts can close them while participants are idle. Set the proxy read and send timeouts on the websocket locations to values longer than the default, and keep them consistent across the signalling and bridge paths. Confirm the value you choose against the proxy product's documentation, because the right number depends on your environment and any upstream load balancer. The check is a meeting left open with no activity for a period longer than the old timeout, after which the websocket is still connected in the developer tools.
Preserve the Host header
The Jitsi components check the Host header to match the request to the correct meeting domain and virtual host. Configure the proxy to pass the original Host value to the upstream rather than substituting the internal address of the backend. If the Host header is rewritten, Prosody can reject the stream or route it to the wrong domain, and the page loads but joining fails. Verify by opening a meeting on the public domain, then checking the server log for the expected domain on the incoming websocket. The step is done when the log shows the public name and the join succeeds.
Forward client address headers only from trusted hops
If the proxy adds X-Forwarded-For or X-Real-IP headers, the JVB and Prosody logs and any address-based logic see the proxy address instead of the participant address. Set the forwarding headers on the proxy, and limit trust in incoming forwarding headers to the known load balancers or proxies in your path. Do not accept these headers from arbitrary clients, because a client can spoof them. Confirm with the team that owns your network edge which hops sit in front of the server. The check is a server log entry that shows the expected client address for a test join from a known address, and a test from an untrusted source that does not change the logged address.
Run a full meeting end to end
Test with a full meeting rather than a single page load. Join from two browsers on different networks, share video and screen, leave a participant idle for several minutes, and then rejoin. Keep the developer tools open and confirm that the signalling and colibri websockets stay connected for the entire meeting without reconnect loops. Also check the server logs for repeated close codes. The step is done when the meeting runs from start to finish with both websockets connected, and you have recorded the proxy configuration version alongside the test result.
How a browser's websocket requests reach Prosody and the bridge
The diagram starts with the browser, which opens a websocket to the nginx web server through the edge WAF or load balancer on the internet side of the trust boundary. Nginx hands the xmpp-websocket path to Prosody and the colibri websocket path to the bridge, while Jicofo coordinates conference state with both. Audio and video then travel as UDP straight from the browser to Jitsi Videobridge, which is why a proxy on the signalling path does not carry media. Check each hand-off, because a WAF rule that drops the websocket upgrade breaks joining even when the web page loads.
Signalling and bridge websocket paths through the edge, with UDP media going direct to the bridge.
What breaks when a proxy or WAF blocks the websockets
When the meeting page itself fails, the problem usually sits in front of the web server rather than in the conference. The browser fetches the app over HTTPS, and a reverse proxy or WAF that rewrites, blocks or certificate-checks that request stops the page before any websocket opens. Blocking rules that match on request paths, user agents or body patterns are common causes, as is a certificate that the client does not trust.
- Certificate problems: The Jitsi handbook says self-signed certificates cause problems, especially with mobile clients, so check that the chain is complete and trusted.
- WAF rules on the root path: Look for managed rules that block the meeting room path or unusual query strings.
- Missing proxy vhost: Confirm the proxy forwards the public hostname to the web container on port 443 with the original Host header.
- Blocked static assets: Check that JavaScript and CSS requests are not stripped or challenged by bot protection.
- Port 80 handling: Confirm that the redirect from port 80 to 443 does not loop.
Check the proxy access log and browser developer tools for the first failing request and its status code, then compare the response with a direct request to the web server on the same host.",
When users load the meeting but only see themselves, signalling is usually the failure point. Jitsi uses a websocket path for XMPP signalling through Prosody, and Jicofo and the videobridge depend on that signalling to add participants to a conference. A proxy that drops upgrade headers, sets short read timeouts or allows only some paths will let the page load while the conference never gets its list of peers.
- Upgrade headers stripped: The proxy must pass the
UpgradeandConnectionheaders for websocket requests, or the handshake fails silently. - Path not forwarded: Confirm that the XMPP websocket path reaches Prosody and that the colibri websocket path reaches the videobridge, as separate routes.
- Protocol mismatch: Check that the proxy speaks HTTP/1.1 to the upstream for websocket traffic.
- Load balancer affinity: With more than one bridge, confirm that bridge channels for the same conference reach the expected backend.
- Browser console errors: Look for failed websocket connections to the XMPP or colibri endpoints.
Check the proxy logs for 101 Switching Protocols responses on the signalling and bridge paths, and confirm both paths are open from a test client on a separate network.",
Participants who see each other but get no audio or video after joining often have a media problem, but a websocket fault on the bridge channel can produce the same result. The colibri channel carries the bridge's session information, so if it fails the bridge never receives the parameters it needs to send media. This symptom is easy to misdiagnose, so separate the signalling checks from the media checks.
- Colibri channel blocked: A WAF that inspects websocket frames may close the bridge channel after the join, leaving media unset.
- Media ports closed: UDP 10000 blocked in the network, or a cloud security group that allows only TCP, prevents media even when websockets work.
- Advertised address wrong: The bridge may advertise a private or stale address, which the proxy cannot correct.
- TCP fallback unavailable: The optional 5349/TCP fallback needs its own path if UDP is restricted.
- Separate test: Compare a client on the internal network with one outside it, since the two can fail differently.
Rule out UDP 10000 and advertised addresses separately, because those faults look similar from the user's side. Confirm the colibri websocket opens in the browser console before changing media settings.",
Meetings that run fine for a few minutes and then disconnect, especially when participants are quiet, usually point to an idle timeout on the proxy or WAF. Websocket connections carry little traffic during quiet periods, and many proxies close connections that have been silent for a default interval. Jitsi reconnects in some cases, so users may see a brief reconnect rather than a clean error.
- Read timeout too short: Raise the proxy's websocket read and send timeouts above the signalling keepalive interval used by your build.
- Connection idle limits on WAFs: Some WAFs enforce their own idle limits that the proxy setting does not override.
- Load balancer session limits: Confirm the maximum connection lifetime on any upstream load balancer.
- Reconnect loops: Repeated join events in the logs suggest the connection is being cut on a schedule.
- Test with silence: Keep a test participant idle for a longer period and record when the connection closes.
After changing timeouts, retest with an idle participant and confirm the connection stays open for the full test period. Document the values so future proxy upgrades do not reset them.
Security settings on the websocket path
The websocket path carries Jitsi signalling and bridge channels, so the proxy in front of it is part of the security boundary. The cards below cover the controls that decide what the proxy exposes, what a WAF can inspect, and how the configuration is kept reviewable. Check each one against your own Jitsi version and your edge stack before you change production traffic.
TLS termination and certificates
The websocket connections ride on the same HTTPS endpoint as the web app, and the Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video. Self-signed certificates cause problems, especially with mobile clients, so use a certificate from a trusted authority for the public name. Decide where TLS ends (the edge proxy, the web server or both), confirm the certificate chain is served completely, and set a renewal process that does not depend on one person.
Debian quick startLimiting exposed paths
Expose only the paths your Jitsi deployment needs on the public name, such as the web app and the websocket endpoints used for XMPP and the bridge. Deny everything else at the proxy, including administrative or internal component paths that the stack does not require from the internet. Review the list after each upgrade, because a new release can add or rename endpoints and an allow list that was correct last quarter may now block a working feature.
WAF rules and websocket frames
A web application firewall that inspects or drops websocket frames can break signalling without any obvious error in the browser. Signalling traffic is long-lived and stateful, so generic request rules written for short HTTP calls may flag normal messages. Ask your WAF vendor whether it supports websocket inspection for your version of the stack and test with a real multi-party meeting before enabling any rule that touches the upgrade path. Treat compatibility with Jitsi as something to confirm in your own tests, not something to assume.
Logging and rate limits
Access logs help with incident response, but log formats for websocket upgrades and long sessions can grow quickly and may contain meeting identifiers. Set log retention to match your policy and avoid logging full query strings that might hold tokens. Rate limits set per connection or per request can disconnect participants in the middle of a call, so set thresholds from observed traffic and do not copy limits from generic API profiles.
Proxy configuration under version control
Keep the proxy configuration for the websocket paths in the same repository as the rest of your Jitsi deployment files, with reviews for every change. Tie each change to a tested Jitsi release so you know which path and header rules belong to which version. Store certificates and secrets outside the repository, and keep a tested rollback copy so an edge change can be reverted quickly if signalling fails.
Common questions about proxying Jitsi websockets
How much effort does a websocket proxy fix take?
The effort depends mostly on how many layers sit between users and the Jitsi web server, and on how much control you have over each one. A direct nginx site with access to its configuration is a small change. A chain of load balancers, a CDN, and a WAF, each managed by a different team, adds coordination work for every rule. Other drivers include whether the XMPP and colibri paths already exist in your config, how many environments (test, staging, production) need the same rules, and how thoroughly you test from restricted networks. Ask any partner to quote from a written scope that lists each layer, each owner, and each environment.
Can our in-house team fix websocket proxying without a partner?
Yes, if the team already runs nginx or Apache, understands the Jitsi web server layout, and can reproduce the failure on a test deployment. The work is mostly configuration plus careful testing, so the main gaps are usually access and time rather than skill. Outside help is more useful when the proxy sits in a shared platform owned by another team, when the WAF has strict change control, or when no one has tested Jitsi from a restricted network before. Jitsi's own scalable setup guide warns that complex infrastructure is not a task for beginners, which applies to proxy chains as well.
What access and cooperation does a websocket project need from us?
Plan for three things before the work starts. First, access to the web server configuration that serves the Jitsi app, including the location blocks for the XMPP websocket and the colibri websocket, and to any upstream load balancer or reverse proxy in front of it. Second, a change control path for the WAF, with named approvers and a rollback plan, because WAF rules often need security sign-off. Third, test users on the networks you care about, such as a restricted corporate segment, a mobile network, and a guest network, so the fixes can be confirmed where users actually connect.
How do we confirm the websocket rules still work after an upgrade?
Keep a short, repeatable test list and run it after every Jitsi release and every proxy or WAF change. The list should load the web app, join a meeting from a browser, confirm that signalling reaches the XMPP websocket path, confirm that the colibri websocket path is used for media channels, and test a second participant to exercise the bridge. Run the same checks from inside and outside your network. Release notes and the Jitsi handbook are the first place to check for changed paths or settings, and the Docker guide's upgrade steps should be treated as a prompt to re-test, not as proof the proxy still works.
Can a WAF sit in front of Jitsi signalling without breaking meetings?
A WAF can sit in front of Jitsi, but it must allow the websocket upgrade requests and the long-lived connections they create. Many WAFs inspect or time out websocket traffic by default, and some rule sets block request patterns that Jitsi signalling uses. Confirm with the WAF vendor that websocket upgrades pass through, that idle timeouts suit long meetings, and that the rules for the XMPP and colibri paths are scoped narrowly rather than disabled site-wide. Test each rule change with a real meeting before it goes to production.
What goes wrong when a proxy or WAF blocks these paths?
The most common symptom is that the meeting page loads but the conference never joins, or participants join but cannot see or hear each other. Users often see a generic connection error rather than a clear message about websockets. Some clients fall back to other transports and work for part of the meeting, which makes the fault intermittent and hard to trace. When you investigate, check the browser developer tools for failed websocket upgrades, then check the proxy access and error logs for the matching paths, and finally check whether the WAF logged a block on the same requests.
Does our compliance review need evidence of the proxy setup?
A compliance assessor will usually want to see how the proxy and WAF rules were approved, what they allow, and how their behavior was tested. Keep the configuration under version control, record the WAF change requests and approvals, and keep dated test results for each release. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or attestation.
Limits to confirm in your environment
A proxy or WAF in front of Jitsi changes which websocket paths reach Prosody and the bridge, and how long idle connections survive. The items below are the points where a design that looks correct on paper fails in a real environment. Confirm each one against the release and network you actually run.
Websocket paths in your release
The exact websocket paths the web app opens for XMPP signalling and bridge channels are defined by the release you install, not by this page. Read the proxy configuration shipped with your installed package or container image, then compare it with your own rules. Check the paths again after every upgrade, because a rule written for one release can silently miss a path added in another.
Scalable setup guideWAF handling of websocket upgrades
Many WAFs inspect the HTTP upgrade request differently from ordinary requests, and some drop or rewrite the Upgrade and Connection headers. Ask the vendor whether websocket upgrades pass through untouched on the paths you need, and whether inspection rules apply to frames after the handshake. Test with a real meeting from outside the network, not only with a health check.
Proxy and load balancer timeouts
Signalling and bridge websockets are long-lived and can sit idle between messages. Find the idle timeout on every hop, including cloud load balancers, reverse proxies and the WAF, and confirm the proxy keeps the connection open for the length of a meeting. A timeout that closes sockets mid-call often shows up as participants dropping and rejoining, so test with a meeting that lasts longer than the shortest timeout you find.
Same web server config in your install
Confirm whether your Debian package or Docker setup uses the same web server configuration for websocket proxying. The package and the container images can place the relevant configuration in different files, and a change made in one will not appear in the other. Record which method you run and keep one source of truth for proxy rules, so your team edits the right file.
Rootless container file locations
Since stable-11146, the Docker containers run rootless with read-only filesystems. Before editing any proxy or Jitsi config inside or alongside a container, confirm the directory a file lives in, since the location changed with that release. Edits made to a read-only path fail quietly or revert on restart, so verify the change after recreating the container.
Jitsi Docker guideBrowser and mobile client behavior
Confirm that the browsers and mobile clients your users run open the websocket connections through your proxy without extra configuration. Mobile clients and older browsers can handle upgrades, certificates and idle sockets differently, and the handbook warns that self-signed certificates cause problems, especially on mobile. Test each client type you support before you rely on the proxy path.
How DeployOpen scopes and delivers Jitsi proxy work
DeployOpen plans, implements, hardens and documents self-hosted Jitsi inside your own infrastructure, including the reverse proxy rules for Jitsi's XMPP and colibri websocket paths. Each engagement starts from a written scope that names your proxy or WAF, your web server and the users who need to connect, so the websocket work is tested before it reaches production.
How we scope
- Engagements are fixed-scope, with the proxy platform, web server and WAF product agreed in writing first.
- Scope lists which websocket paths are proxied, which network zones reach them and who signs off changes.
- Ask for the written scope to name the test clients, browsers and networks used for acceptance.
How we build
- Proxy rules for the xmpp-websocket and colibri paths are written against your existing reverse proxy configuration.
- Timeouts, header forwarding and WebSocket upgrade handling are set and checked against your Jitsi version.
- WAF rules are tuned to pass signalling and bridge traffic while your security team keeps its inspection policy.
How we hand over
- You receive the proxy configuration files, a change log and the test results for each websocket path.
- Runbooks describe how to confirm the websocket connections are up and how to roll back a proxy change.
- Documentation records which WAF rules were added or relaxed and the reason for each, for your security review.
How we support
- Ongoing support and upgrades are available as a retainer, covering proxy changes made when Jitsi releases change.
- Retesting after a WAF policy update or a new Jitsi release is included in the retainer scope when agreed.
- Ask any quote to separate one-time build work from recurring support, testing and upgrade effort.

