mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
move port to cfg
This commit is contained in:
parent
62efdd96b5
commit
d8c1a051c2
@ -12,6 +12,9 @@ users_dir = os.path.join(data_dir, "users")
|
|||||||
product_name = "Plinth"
|
product_name = "Plinth"
|
||||||
box_name = "Freedom Plug"
|
box_name = "Freedom Plug"
|
||||||
|
|
||||||
|
port = 8000
|
||||||
|
|
||||||
|
## Do not edit below this line ##
|
||||||
html_root = None
|
html_root = None
|
||||||
main_menu = Menu()
|
main_menu = Menu()
|
||||||
|
|
||||||
|
|||||||
10
plinth.py
10
plinth.py
@ -81,14 +81,14 @@ def write_cherrypy_config():
|
|||||||
|
|
||||||
[global]
|
[global]
|
||||||
server.socket_host = '0.0.0.0'
|
server.socket_host = '0.0.0.0'
|
||||||
server.socket_port = 8000
|
server.socket_port = %(port)s
|
||||||
server.thread_pool = 10
|
server.thread_pool = 10
|
||||||
tools.staticdir.root = "{fileroot}"
|
tools.staticdir.root = "%(fileroot)s"
|
||||||
tools.sessions.on = True
|
tools.sessions.on = True
|
||||||
tools.auth.on = True
|
tools.auth.on = True
|
||||||
tools.sessions.storage_type = "file"
|
tools.sessions.storage_type = "file"
|
||||||
tools.sessions.timeout = 90
|
tools.sessions.timeout = 90
|
||||||
tools.sessions.storage_path = "{fileroot}/data/cherrypy_sessions"
|
tools.sessions.storage_path = "%(fileroot)s/data/cherrypy_sessions"
|
||||||
|
|
||||||
[/static]
|
[/static]
|
||||||
tools.staticdir.on = True
|
tools.staticdir.on = True
|
||||||
@ -96,8 +96,8 @@ tools.staticdir.dir = "static"
|
|||||||
|
|
||||||
[/favicon.ico]
|
[/favicon.ico]
|
||||||
tools.staticfile.on = True
|
tools.staticfile.on = True
|
||||||
tools.staticfile.filename = "{fileroot}/static/theme/favicon.ico"
|
tools.staticfile.filename = "%(fileroot)s/static/theme/favicon.ico"
|
||||||
""".format(fileroot=cfg.file_root))
|
""" % {'port':cfg.port, 'fileroot':cfg.file_root})
|
||||||
|
|
||||||
def parse_arguments():
|
def parse_arguments():
|
||||||
parser = argparse.ArgumentParser(description='Plinht web interface for the FreedomBox.')
|
parser = argparse.ArgumentParser(description='Plinht web interface for the FreedomBox.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user