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 = [
{
'name': 'refresh-token',
'url': 'http://:8082',
'url': 'http://hub:8082',
'display': False,
'oauth_no_confirm': True,
'api_token': os.environ['JUPYTERHUB_CRYPT_KEY'],
@ -190,9 +190,9 @@ hub:
http_server = HTTPServer(app)
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()
if __name__ == '__main__':