Skip to content

Instantly share code, notes, and snippets.

@clemesha
Created December 22, 2009 23:30
Show Gist options
  • Save clemesha/262177 to your computer and use it in GitHub Desktop.
Save clemesha/262177 to your computer and use it in GitHub Desktop.
diff --git a/djangoweb/settings.py b/djangoweb/settings.py
index f9cba67..fe0c8ac 100644
--- a/djangoweb/settings.py
+++ b/djangoweb/settings.py
@@ -2,7 +2,7 @@ import os
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
STATIC_PORT = 8000
STOMP_PORT = 9999
-INTERFACE = "localhost"
+INTERFACE = "0.0.0.0"
DEBUG = True
TEMPLATE_DEBUG = DEBUG
diff --git a/realtime/restq.py b/realtime/restq.py
index df61bc5..0d036ce 100644
--- a/realtime/restq.py
+++ b/realtime/restq.py
@@ -13,7 +13,7 @@ except ImportError:
print "No suitable json library found, see INSTALL.txt"
class RestQ(object):
- def __init__(self, port=5000, rqaddr='http://localhost', handlers=None):
+ def __init__(self, port=5000, rqaddr='http://0.0.0.0', handlers=None):
if handlers is None:
self.handlers = ['connect', 'disconnect', 'subscribe', 'unsubscribe', 'send']
else:
diff --git a/server.py b/server.py
index 875ab49..990aa71 100644
--- a/server.py
+++ b/server.py
@@ -10,7 +10,7 @@ from morbid import StompFactory
# Config
from orbited import logging, config
logging.setup(config.map)
-INTERFACE = "localhost"
+INTERFACE = "0.0.0.0"
#Runtime config, is there a cleaner way?:
config.map["[access]"]={(INTERFACE, 9999):"*"}
STATIC_PORT = 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment