mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
proxy.py: Respect base_url in add_hub_route
This commit is contained in:
@@ -365,8 +365,8 @@ class Proxy(LoggingConfigurable):
|
|||||||
|
|
||||||
def add_hub_route(self, hub):
|
def add_hub_route(self, hub):
|
||||||
"""Add the default route for the Hub"""
|
"""Add the default route for the Hub"""
|
||||||
self.log.info("Adding default route for Hub: / => %s", hub.host)
|
self.log.info("Adding default route for Hub: %s => %s", hub.base_url[:-4], hub.host)
|
||||||
return self.add_route('/', self.hub.host, {'hub': True})
|
return self.add_route(hub.base_url[:-4], self.hub.host, {'hub': True})
|
||||||
|
|
||||||
async def restore_routes(self):
|
async def restore_routes(self):
|
||||||
self.log.info("Setting up routes on new proxy")
|
self.log.info("Setting up routes on new proxy")
|
||||||
|
Reference in New Issue
Block a user