|
|
If the prosody server has been set up according to the instructions in this wiki and all modules for a XMPP domains are enabled, the config fulfills the requirements set by the XMPP compliance guide of the famous XMPP client Conversations.
|
|
|
|
|
|
## Links to be used by XMPP domain owners and users
|
|
|
|
|
|
- Logs of chatrooms (if enabled in domain)
|
|
|
http://muc.[DOMAIN]:5290/logs/
|
|
|
- Online status of users in different formats to be included by other tools / websites
|
|
|
http://xmpp.[DOMAIN]:5290/status/[JabberID]
|
|
|
http://xmpp.[DOMAIN]:5290/status/[JabberID]/html
|
|
|
http://xmpp.[DOMAIN]:5290/status/[JabberID]/text
|
|
|
http://xmpp.[DOMAIN]:5290/status/[JabberID]/json
|
|
|
http://xmpp.[DOMAIN]:5290/status/[JabberID]/message
|
|
|
- Status of Hosts and components for a domain, useful for monitoring purposes
|
|
|
http://xmpp.[DOMAIN]:5290/xmppd/
|
|
|
|
|
|
## BOSH
|
|
|
To connect web tools like Jappix or Converse.js, the following address exposes bosh services:
|
|
|
|
|
|
- http:xmpp.[DOMAIN]:5280/http-bind
|
|
|
|
|
|
For usage with web chats on a website, it is required to add a proxy rule for a subfolder of the website to avoid JS cross-domain issues.
|
|
|
|
|
|
### Apache
|
|
|
|
|
|
```
|
|
|
<Location /http-bind>
|
|
|
Order allow,deny
|
|
|
Allow from all
|
|
|
</Location>
|
|
|
RewriteEngine On
|
|
|
RewriteRule ^/http-bind$ http://xmpp.[DOMAIN]:5280/http-bind [P,L]
|
|
|
```
|
|
|
|
|
|
### nginx
|
|
|
|
|
|
```
|
|
|
location /http-bind {
|
|
|
proxy_pass http://xmpp.[DOMAIN]:5280/http-bind;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_buffering off;
|
|
|
tcp_nodelay on;
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |