Skip to content

Commit

Permalink
add http-bind proxy route for nginx + apache snippets
Browse files Browse the repository at this point in the history
mobile apps still use http-bind for XMPP over BOSH
  • Loading branch information
rasos authored Feb 25, 2024
1 parent 2a933ad commit f0b6c71
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/devops-guide/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,10 +813,11 @@ By default this setup is using WebSocket connections for 2 core components:
* Signalling (XMPP)
* Bridge channel (colibri)
Due to the hop-by-hop nature of WebSockets the reverse proxy must properly terminate and forward WebSocket connections. There 2 routes require such treatment:
Due to the hop-by-hop nature of WebSockets the reverse proxy must properly terminate and forward WebSocket connections. There 3 routes require such treatment:
* /xmpp-websocket
* /colibri-ws
* /http-bind (XMPP over BOSH still used by mobile clients)
With nginx, these routes can be forwarded using the following config snippet:
Expand All @@ -833,6 +834,12 @@ location /colibri-ws {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /http-bind {
proxy_pass https://localhost:8443;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
```
With apache, `mod_proxy` and `mod_proxy_wstunnel` need to be enabled and these routes can be forwarded using the following config snippet:
Expand All @@ -847,6 +854,9 @@ With apache, `mod_proxy` and `mod_proxy_wstunnel` need to be enabled and these r
<Location "/colibri-ws/">
ProxyPass "wss://localhost:8443/colibri-ws/"
</Location>
<Location "/http-bind">
ProxyPass "http://localhost:8443/http-bind"
</Location>
</IfModule>
</IfModule>
Expand Down

0 comments on commit f0b6c71

Please sign in to comment.