How to host Jupyterhub at a given URL?

Hi guys :wave:t2:

I installed the TLJH following these instruction:

https://tljh.jupyter.org/en/latest/install/custom-server.html

And it works excellent. I also added HTTPS and it works fine.

But I try to change the url_binding. So instead of listening to domaind.edu. It should listen to domaind.edu/jupyter, but I am not able to manage this.

I found a solution using the Zero to JupyterHub:

https://jupyterhub.readthedocs.io/en/stable/installation-guide-hard.html#setting-up-a-reverse-proxy

But I cant find the config.py. I can find the config.yaml but dont know which parameter to set their for getting ahead. I also found the traefik.toml but changing the Entrypoint

FROM
[entryPoints.https]
address = ":7443"
TO
[entryPoints.https]
address = ":7443/jupyter"

will lead to an not starting traefik.service.
This is how my config.yaml & site-packages & tljh in site-packages look like

Maybe someone can help. I guess it is not a big Deal since it is one line of code in the “from ground to Jupyterhub Installation”.

Allready a big thank you to all who are reading this and trying to help.

You can set c.JupyterHub.base_url= “/jupyter” in your jupyterhub_config.py

Thanks,
Mark

1 Like

Thank you so much. I feel a bit stupid right now but you saved my day.

Path to Happiness
/opt/tljh/hub/lib/python3.6/site-packages/tljh/jupyterhub_config.py

add c.JupyterHub.base_url= “/jupyter”
restart jupyterhub (systemctl restart jupyterhub.service)

if I use
tljh-config reload 
I get this

/opt/tljh/hub/lib/python3.6/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: 
Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly 
advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,

well but it works and it works well.

Thank you Mark

Glad it helped. The various url configurations are definitely confusing.

1 Like