mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 07:53:00 +00:00
consolidate trusted alt names
- trust subdomain_host by default - JupyterHub.trusted_alt_names is inherited by Spawners by default. Do we need Spawner.ssl_alt_names to be separately configurable?
This commit is contained in:
@@ -189,11 +189,9 @@ async def wait_for_http_server(url, timeout=10, ssl_context=None):
|
||||
"""
|
||||
loop = ioloop.IOLoop.current()
|
||||
tic = loop.time()
|
||||
settings = None
|
||||
if ssl_context:
|
||||
settings = {"ssl_options": ssl_context}
|
||||
AsyncHTTPClient.configure(None, defaults=settings)
|
||||
client = AsyncHTTPClient()
|
||||
if ssl_context:
|
||||
client.ssl_options = ssl_context
|
||||
async def is_reachable():
|
||||
try:
|
||||
r = await client.fetch(url, follow_redirects=False)
|
||||
|
Reference in New Issue
Block a user