Skip to content

Commit

Permalink
Merge pull request #2 from ramonrovirosa/master
Browse files Browse the repository at this point in the history
Update Readme.md to add more usefull info on Installing Demo.
  • Loading branch information
chrisn committed Sep 6, 2013
2 parents 83dcd85 + 89ca52c commit f641113
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -25,10 +25,18 @@ minimized versions of both are included, but for the latest versions and more in

## Setting up an XMPP server

You'll need a running [XMPP server](http://xmpp.org/xmpp-software/servers/) and [BOSH connection manager](http://metajack.im/2008/09/08/which-bosh-server-do-you-need/). There are many options out there, but I've choosen to ehlp you install [Ejabberd](http://www.ejabberd.im/), a popular XMPP server and latest versions (2.1.3+) comes with BOSH (Bidirectional-streams Over Synchronous HTTP) and CORS (Cross-Origin Resource Sharing) support baked in and enabled by default.
You'll need a running [XMPP server](http://xmpp.org/xmpp-software/servers/) and [BOSH connection manager](http://metajack.im/2008/09/08/which-bosh-server-do-you-need/). There are many options out there, but I've choosen to help you install [Ejabberd](http://www.ejabberd.im/), a popular XMPP server and latest versions (2.1.3+) comes with BOSH (Bidirectional-streams Over Synchronous HTTP) and CORS (Cross-Origin Resource Sharing) support baked in and enabled by default.

I have added installation instructions for Ejabberd on Centos 5.5 in the /docs directory. If you have similar instructions for other setups, please send [pull requests](http://help.github.com/pull-requests/), and I'll try and feed these back.

Make sure to config Ejabberd to work with anonymous connections by modifying your ejabberd.cfg file by adding under the Authentication section this line:
```{host_config, "vm.local", [{auth_method, [anonymous]},
{anonymous_protocol, both}]}. ```
(You'll then need to restart Ejabberd)

#####Note on Openfire#####
Openfire does not allow anonymous pubsub messaging.

## Setting up the client and publisher

Once you have your XMPP server installed, you need to stick all the files above into a directory you can browse to in a web browser. You'll then need to update the configuration settings to reflect you XMPP server. It's also worth noting that all the files are currently grouped together, so if you are testing this on a public server, you'd want to stick all the publisher stuff behind some authentication, so anyone can't come along and start publishing stuff.
Expand Down

0 comments on commit f641113

Please sign in to comment.