mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 13:33:00 +00:00
remove redundant use_subdomains
non-empty subdomain_host is enough
This commit is contained in:
@@ -158,7 +158,7 @@ class User(HasTraits):
|
||||
|
||||
@property
|
||||
def proxy_path(self):
|
||||
if self.settings.get('use_subdomains'):
|
||||
if self.settings.get('subdomain_host'):
|
||||
return url_path_join('/' + self.domain, self.server.base_url)
|
||||
else:
|
||||
return self.server.base_url
|
||||
@@ -183,7 +183,7 @@ class User(HasTraits):
|
||||
|
||||
Full name.domain/path if using subdomains, otherwise just my /base/url
|
||||
"""
|
||||
if self.settings.get('use_subdomains'):
|
||||
if self.settings.get('subdomain_host'):
|
||||
return '{host}{path}'.format(
|
||||
host=self.host,
|
||||
path=self.server.base_url,
|
||||
|
Reference in New Issue
Block a user