mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 05:23:01 +00:00
default bind url should be on all ips
preserves jupyterhub default behavior typo introduced in new bind_url config
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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):
|
||||||
|
Reference in New Issue
Block a user