diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 3ab4fef2..a65d3ae3 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -166,6 +166,9 @@ class HubAuth(Configurable): Typically /hub/ """ ).tag(config=True) + @default('hub_prefix') + def _default_hub_prefix(self): + return url_path_join(os.getenv('JUPYTERHUB_BASE_URL') or '/', 'hub') + '/' login_url = Unicode('/hub/login', help="""The login URL to use