mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
add named_servers proxy
This commit is contained in:
@@ -166,9 +166,9 @@ class User(HasTraits):
|
|||||||
@property
|
@property
|
||||||
def proxy_path(self):
|
def proxy_path(self):
|
||||||
if self.settings.get('subdomain_host'):
|
if self.settings.get('subdomain_host'):
|
||||||
return url_path_join('/' + self.domain, self.base_url)
|
return url_path_join('/' + self.domain, self.server_base_url)
|
||||||
else:
|
else:
|
||||||
return self.base_url
|
return self.server_base_url
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def domain(self):
|
def domain(self):
|
||||||
@@ -235,6 +235,8 @@ class User(HasTraits):
|
|||||||
api_token = self.new_api_token()
|
api_token = self.new_api_token()
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
self.server_base_url = base_url
|
||||||
|
|
||||||
spawner = self.spawner
|
spawner = self.spawner
|
||||||
# Passing server_name and base_url to the spawner
|
# Passing server_name and base_url to the spawner
|
||||||
spawner.server_base_url = base_url
|
spawner.server_base_url = base_url
|
||||||
|
Reference in New Issue
Block a user