Nginx + Socket.io = Secure Websockets via SSL
=============================================
- nginx + socket.io example https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/
- great secure web socket proxy post http://www.exratione.com/2013/06/websockets-over-ssl-with-nodejs-and-nginx/
- maybe troubleshooting? http://arthur-notes.blogspot.de/2013/01/setting-up-nginx-for-socketio.html
hostname is ``locutus.lan``
generate ssl certs and add to clients (see :doc:`/admin/ssl`).
install node::
mkdir -p ~/checkouts/node
cd ~/checkouts/node
git clone git://github.com/joyent/node.git
cd node
git checkout v0.10.12
./configure
make
sudo make install
fetch example chat app::
cd ~/checkouts/node
git clone https://github.com/mmukhin/psitsmike_example_1.git
cd psitsmike_example_1
npm install -d
node app.js
Check http://localhost:8080/ to see that it worked. Kill it. Set correct socket.io endpoint::
git apply <<'ENDOFPATCH'
diff --git a/index.html b/index.html
index a8a54c9..e2960c6 100644
--- a/index.html
+++ b/index.html
@@ -1,7 +1,7 @@