Skip to content

Commit

Permalink
Updated jhub config.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Apr 19, 2024
1 parent 423f6aa commit 6472ba9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/jupyter-hub/config/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@ def start(self):
jupyter_hub_port = int(os.environ.get("JUPYTERHUB_INTERNAL_PORT", 8888))
jupyter_hub_proxy_api_port = int(os.environ.get("JUPYTERHUB_INTERNAL_PROXY_API_PORT", 8887))
jupyter_hub_ssl_port = int(os.environ.get("JUPYTERHUB_SSL_PORT", 443))
jupyter_hub_proxy_url = str(os.environ.get("JUPYTERHUB_PROXY_API_URL", "http://127.0.0.1:"))

c.JupyterHub.hub_port = jupyter_hub_port

c.ConfigurableHTTPProxy.api_url = "http://127.0.0.1:" + str(jupyter_hub_proxy_api_port)
c.ConfigurableHTTPProxy.api_url = jupyter_hub_proxy_url + str(jupyter_hub_proxy_api_port)
# ideally a private network address
# c.JupyterHub.proxy_api_ip = "10.0.1.4"
c.JupyterHub.proxy_api_port = jupyter_hub_proxy_api_port
Expand Down

0 comments on commit 6472ba9

Please sign in to comment.