Skip to content

Commit

Permalink
switch back to serving socket.io locally; update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jan 21, 2011
1 parent 6417c37 commit 8369789
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,16 @@ config/app.json. The dashboard is just html served out of public/; you can serv
any webserver.


Deployment
----------

Make sure to properly secure the dashboard if you don't want outside people to see it. The dashboard
httpServer's 'listen' function takes a second argument that is the interface to bind; typically you
would choose "127.0.0.1" to only allow access from localhost, or "0.0.0.0" to listen on all
interfaces. In production you should change the instances of "localhost:8000" in public/index.html
to point to the server where you're hosting the dashboard.


Architecture Overview
---------------------

Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Expand Up @@ -5,9 +5,9 @@
<head>
<script src="/js/jquery-1.4.3.js"></script>

<script src="http://cdn.socket.io/stable/socket.io.js"></script>
<script src="http://localhost:8000/socket.io/socket.io.js"></script>
<script>
WEB_SOCKET_SWF_LOCATION = '/socket.io/';
WEB_SOCKET_SWF_LOCATION = 'http://localhost:8000/socket.io/WebSocketMain.swf';
</script>

<script src="/js/helpers.js"></script>
Expand Down

0 comments on commit 8369789

Please sign in to comment.