mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Make sure proxy handler priority is before auth handler (Fixes Tautulli/Tautulli-Issues#123)
This commit is contained in:
parent
c8575bbc0f
commit
71ae314c46
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ def initialize(options):
|
|||
|
||||
if options['http_proxy']:
|
||||
# Overwrite cherrypy.tools.proxy with our own proxy handler
|
||||
cherrypy.tools.proxy = cherrypy.Tool('before_handler', proxy)
|
||||
cherrypy.tools.proxy = cherrypy.Tool('before_handler', proxy, priority=1)
|
||||
|
||||
if options['http_password']:
|
||||
login_allowed = ["Tautulli admin (username is '%s')" % options['http_username']]
|
||||
|
@ -84,7 +84,7 @@ def initialize(options):
|
|||
else:
|
||||
auth_enabled = True
|
||||
basic_auth_enabled = False
|
||||
cherrypy.tools.auth = cherrypy.Tool('before_handler', webauth.check_auth)
|
||||
cherrypy.tools.auth = cherrypy.Tool('before_handler', webauth.check_auth, priority=2)
|
||||
else:
|
||||
auth_enabled = basic_auth_enabled = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue