default bind url should be on all ips

preserves jupyterhub default behavior

typo introduced in new bind_url config
This commit is contained in:
Min RK
2018-05-22 09:55:01 +02:00
parent 09cd37feee
commit ad2abc5771
2 changed files with 11 additions and 1 deletions

View File

@@ -358,7 +358,7 @@ class JupyterHub(Application):
self.bind_url = bind_url self.bind_url = bind_url
bind_url = Unicode( bind_url = Unicode(
"http://127.0.0.1:8000", "http://:8000",
help="""The public facing URL of the whole JupyterHub application. help="""The public facing URL of the whole JupyterHub application.
This is the address on which the proxy will bind. This is the address on which the proxy will bind.

View File

@@ -242,6 +242,16 @@ def test_resume_spawners(tmpdir, request):
{'bind_url': 'http://0.0.0.0:12345/sub'}, {'bind_url': 'http://0.0.0.0:12345/sub'},
{'base_url': '/sub/'}, {'base_url': '/sub/'},
), ),
(
# no config, test defaults
{},
{
'base_url': '/',
'bind_url': 'http://:8000',
'ip': '',
'port': 8000,
},
),
] ]
) )
def test_url_config(hub_config, expected): def test_url_config(hub_config, expected):