t&e
This commit is contained in:
parent
a56a2fdab8
commit
d8f082c6eb
|
@ -142,7 +142,7 @@ hub:
|
||||||
c.JupyterHub.services = [
|
c.JupyterHub.services = [
|
||||||
{
|
{
|
||||||
'name': 'refresh-token',
|
'name': 'refresh-token',
|
||||||
'url': 'http://:8082',
|
'url': 'http://hub:8082',
|
||||||
'display': False,
|
'display': False,
|
||||||
'oauth_no_confirm': True,
|
'oauth_no_confirm': True,
|
||||||
'api_token': os.environ['JUPYTERHUB_CRYPT_KEY'],
|
'api_token': os.environ['JUPYTERHUB_CRYPT_KEY'],
|
||||||
|
@ -190,9 +190,9 @@ hub:
|
||||||
|
|
||||||
http_server = HTTPServer(app)
|
http_server = HTTPServer(app)
|
||||||
print(os.environ)
|
print(os.environ)
|
||||||
url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL'])
|
url = urlparse(os.environ['JUPYTERHUB_API_URL'])
|
||||||
|
|
||||||
http_server.listen(url.port, url.hostname)
|
http_server.listen(url.port, reuse_port=True)
|
||||||
|
|
||||||
IOLoop.current().start()
|
IOLoop.current().start()
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue