xmppo / node-xmpp-bosh

An XMPP BOSH & WebSocket server (connection manager) written on node.js using Javascript
https://github.com/xmppo/node-xmpp-bosh
263 stars 85 forks source link

[not a bug] https and external connections. #45

Closed clement-analogue closed 12 years ago

clement-analogue commented 12 years ago

Hello,

I don't report a bug. I only have two questions.

1/ How to run in https instead of http ?

2/ How to allow external connection ? I mean allow other web servers to use my BOSH server.

This both case like https://bind.jappix.com/

Thanks.

dhruvbird commented 12 years ago

1/ How to run in https instead of http ?

You need to put a reverse proxy in front of node-xmpp-bosh to do this since node-xmpp-bosh doesn't support https or gzip. nginx or apache is a good idea. You can get more details about configuring a reverse proxy to use with NXB at: https://github.com/jappix/jappix/wiki/BoshServer

2/ How to allow external connection ? I mean allow other web servers to use my BOSH server.

Just expose the NXB bind port (or the reverse proxy if you have one set up) to the external world. This might involve updating your firewall rules (ufw or iptables or something else).