mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Setup mock services to use certs from env
This commit is contained in:
@@ -178,7 +178,10 @@ def _mockservice(request, app, url=False):
|
||||
'admin': True,
|
||||
}
|
||||
if url:
|
||||
spec['url'] = 'http://127.0.0.1:%i' % random_port()
|
||||
if app.internal_ssl:
|
||||
spec['url'] = 'https://127.0.0.1:%i' % random_port()
|
||||
else:
|
||||
spec['url'] = 'http://127.0.0.1:%i' % random_port()
|
||||
|
||||
io_loop = app.io_loop
|
||||
|
||||
|
Reference in New Issue
Block a user