From e9c78422b57e47b682d31c4faae6083d53ccaeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Mon, 27 May 2019 14:08:04 -0400 Subject: [PATCH] Define default values for HubAuth ssl traitlets The default values are taken from environment variables defined by Spawner.get_env. --- jupyterhub/services/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index c6d8b83c..9c9028a6 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -216,7 +216,7 @@ class HubAuth(SingletonConfigurable): return self.hub_host + url_path_join(self.hub_prefix, 'login') keyfile = Unicode( - '', + os.getenv('JUPYTERHUB_SSL_KEYFILE', ''), help="""The ssl key to use for requests Use with certfile @@ -224,7 +224,7 @@ class HubAuth(SingletonConfigurable): ).tag(config=True) certfile = Unicode( - '', + os.getenv('JUPYTERHUB_SSL_CERTFILE', ''), help="""The ssl cert to use for requests Use with keyfile @@ -232,7 +232,7 @@ class HubAuth(SingletonConfigurable): ).tag(config=True) client_ca = Unicode( - '', + os.getenv('JUPYTERHUB_SSL_CLIENT_CA', ''), help="""The ssl certificate authority to use to verify requests Use with keyfile and certfile