Customize host in cfg.py.

We start with a default of 127.0.0.1, because anything else is stupid.

Change to 0.0.0.0 to serve to everybody.
This commit is contained in:
Nick Daly 2012-09-23 18:32:16 -05:00
parent 82df0a800d
commit 3ef8e8bbc2
2 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ users_dir = os.path.join(data_dir, "users")
product_name = "Plinth"
box_name = "FreedomBox"
host = 127.0.0.1
port = 8000
## Do not edit below this line ##

View File

@ -121,7 +121,7 @@ def setup():
server.subscribe()
# Configure default server
cherrypy.config.update({'server.socket_host': '127.0.0.1',
cherrypy.config.update({'server.socket_host': cfg.host,
'server.socket_port': cfg.port,
'server.thread_pool':10,
'tools.staticdir.root': cfg.file_root,