R4stl1n/allianceauth — pull request #34 by tyler274 (2014-12-18 23:08:18+00:00)
Title: Integration of a browser based Jabber client.

Does not require but I recommend using Punjab (https://github.com/twonds/punjab) as your Bosh connection manager, its easy to setup.

You must also proxy the domain you serve the app from to your jabber domain, below is an example nginx config to do this. e.x. you serve from "https://yoursite.com/chat", but your jabber server is at "xmpp.yoursite.com", you use the config below for https://yoursite.com" to route "https://yoursite.com/http-bind/" to "http//xmpp.yoursite.com:5280/http-bind/". This is required to protect against cross site scripting by many browsers.

location /http-bind/ {
proxy_pass http://xmpp.yoursite.com:5280/http-bind/;
proxy_buffering off;
tcp_nodelay on;
}