mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
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:
parent
82df0a800d
commit
3ef8e8bbc2
@ -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 ##
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user