add named_servers proxy

This commit is contained in:
Christian Barra
2017-04-15 05:22:01 +03:00
parent 76b589bc90
commit ced8e9f874

View File

@@ -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