JupyterHub没有连接到其公共端口

问题描述 投票:0回答:1

JupyterHub不在公共端口8000上工作。它只适用于端口8081.我读到的每个地方,每个人都在没有任何解决方案的情况下神奇地解决了他们的问题。

https://github.com/jupyterhub/jupyterhub/issues/742

jupyterhub_config.py

from oauthenticator.gitlab import GitLabOAuthenticator
c.JupyterHub.authenticator_class = GitLabOAuthenticator
c.GitLabOAuthenticator.oauth_callback_url = 'http://localhost:8000/hub/oauth_callback'
c.GitLabOAuthenticator.client_id =  '...'
c.GitLabOAuthenticator.client_secret = '...'
c.ConfigurableHTTPProxy.debug = True
c.JupyterHub.hub_ip = '127.0.0.1'
c.JupyterHub.hub_port = 8081
c.JupyterHub.ip = '127.0.0.1'
c.JupyterHub.port = 8000
c.JupyterHub.spawner_class = 'simplespawner.SimpleLocalProcessSpawner'
c.JupyterHub.ssl_cert = '/srv/jupyterhub/jupyterhub.crt'
c.JupyterHub.ssl_key = '/srv/jupyterhub/jupyterhub.key'

使用GitLab作为验证者和simplespawner作为产生者。不使用Docker。

JupiterHow -B 0.Ya.4

可配置-HTTP-Proxy -V 4.0.1

在VirtualBox上运行Ubuntu 18.04。

python proxy jupyterhub
1个回答
1
投票

显然我必须在JupyterHub之前在另一个终端窗口上运行以下行。

跑:

configurable-http-proxy --ip=127.0.0.1 --port=8000 --api-ip=127.0.0.1 --api-port=8001

之前:

jupyterhub -f /srv/jupyterhub/jupyterhub_config.py --debug
© www.soinside.com 2019 - 2024. All rights reserved.