mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +00:00
get default hub_prefix from env
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user