I have 2 issues related to jupyterhub installation behind my proxy server:
While using dummy authentication everything works fine. While using github authentication, immediately after providing the github credentials, I receive a message that the site is unreachable.
I guess that I need to set up the http_proxy, https_proxy and no_proxy environment variables with my proxy IP address to allow access to github but I don’t which pods I need to set these variables up for and how to do it properly. I tried to set it up manually for hub pod (via adding them to deployment file of this hub pod) but it does not work.
Even after successful authorization, I don’t know how to set up the http_proxy, https_proxy and no_proxy variables for the pod with my jupyter server. If I don’t set them up, I don’t have the access to the internet from this pod:
If I set it up explicitly in jupyter notebook, it works fine:
… but I would like to avoid adding them manually each time. I tried to add the following configuratrion to config.yaml:
You only want external http requests (to outside your network) to go through the proxy, presumably setting the environment variables at the pod level results in communication to the hub going through the proxy and failing to reach the hub. You could try setting no_proxy
but if you’re using Z2JH the hub IP may change.
Alternatively you could try creating a custom kernelspec with environment variables: