We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970161c commit 9e63362Copy full SHA for 9e63362
jupyter_nestdesktop_proxy/__init__.py
@@ -95,13 +95,13 @@ def _get_random_alphanumeric_string(length):
95
raise FileNotFoundError("Passwd generation in temp file FAILED")
96
97
# generate nest-server url
98
- jhub_apiurl = os.environ.get('JUPYTERHUB_API_URL')
+ jhub_domain = os.environ.get('JUPYTERHUB_DOMAIN')
99
jlab_urlprefix = os.environ.get('JUPYTERHUB_SERVICE_PREFIX')
100
- if jhub_apiurl and jlab_urlprefix:
101
- parsed_url = urlparse(jhub_apiurl)
+ if jhub_domain and jlab_urlprefix:
102
_nestsrv_url = (
103
- f"{parsed_url.scheme}://{parsed_url.netloc}" +
+ "https://" +
104
sub(r'/+', '/', '/'.join([
+ jhub_domain,
105
jlab_urlprefix,
106
'proxy',
107
str(nestsrv_port)
0 commit comments