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:
Min RK
2018-10-16 15:46:50 +02:00
parent 9a45f4a8c9
commit eb7648abc2
3 changed files with 14 additions and 5 deletions

View File

@@ -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)