mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Fix starting cherrypy server
This commit is contained in:
parent
4c98b0a43d
commit
5f237c7c71
1 changed files with 2 additions and 3 deletions
|
@ -139,6 +139,7 @@ def initialize(options):
|
|||
|
||||
conf = {
|
||||
'/': {
|
||||
'engine.timeout_monitor.on': False,
|
||||
'tools.staticdir.root': os.path.join(plexpy.PROG_DIR, 'data'),
|
||||
'tools.proxy.on': bool(options['http_proxy']),
|
||||
'tools.gzip.on': True,
|
||||
|
@ -248,8 +249,6 @@ def initialize(options):
|
|||
}
|
||||
}
|
||||
|
||||
# Prevent time-outs
|
||||
cherrypy.engine.timeout_monitor.unsubscribe()
|
||||
cherrypy.tree.mount(WebInterface(), options['http_root'], config=conf)
|
||||
if plexpy.HTTP_ROOT != '/':
|
||||
cherrypy.tree.mount(BaseRedirect(), '/')
|
||||
|
@ -257,7 +256,7 @@ def initialize(options):
|
|||
try:
|
||||
logger.info("Tautulli WebStart :: Starting Tautulli web server on %s://%s:%d%s", protocol,
|
||||
options['http_host'], options['http_port'], options['http_root'])
|
||||
cherrypy.process.servers.check_port(str(options['http_host']), options['http_port'])
|
||||
#cherrypy.process.servers.check_port(str(options['http_host']), options['http_port'])
|
||||
if not plexpy.DEV:
|
||||
cherrypy.server.start()
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue