mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
listen locally only, proxy to the outside world
This commit is contained in:
parent
c9863bc0f8
commit
51a74abc82
@ -103,8 +103,8 @@ def setup():
|
||||
server.subscribe()
|
||||
|
||||
# Configure default server
|
||||
cherrypy.config.update({'server.socket_host': '0.0.0.0',
|
||||
'server.socket_port': cfg.port,
|
||||
cherrypy.config.update({'server.socket_host': '127.0.0.1',
|
||||
'server.socket_port': cfg.port,
|
||||
'server.thread_pool':10,
|
||||
'tools.staticdir.root': cfg.file_root,
|
||||
'tools.sessions.on':True,
|
||||
@ -115,15 +115,14 @@ def setup():
|
||||
|
||||
})
|
||||
|
||||
config = {'/': {'tools.staticdir.root': '%s/static' % cfg.file_root},
|
||||
config = {'/': {'tools.staticdir.root': '%s/static' % cfg.file_root,
|
||||
'tools.proxy.on':True,},
|
||||
'/static': {'tools.staticdir.on': True,
|
||||
'tools.staticdir.dir':"."},
|
||||
'/favicon.ico':{'tools.staticfile.on':True,
|
||||
'tools.staticfile.filename': "%s/static/theme/favicon.ico" % cfg.file_root}
|
||||
}
|
||||
cherrypy.tree.mount(cfg.html_root, '/', config=config)
|
||||
|
||||
|
||||
cherrypy.engine.signal_handler.subscribe()
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user