This commit is contained in:
Micke Nordin 2024-01-16 15:31:56 +01:00
parent a56a2fdab8
commit d8f082c6eb
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -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__':