Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyterhub behind a reverse proxy #5

Open
victor-moreno opened this issue Mar 8, 2023 · 2 comments
Open

jupyterhub behind a reverse proxy #5

victor-moreno opened this issue Mar 8, 2023 · 2 comments

Comments

@victor-moreno
Copy link

Hi
I need some help setting up this plugin.
Can anyone comment if this should work when jupyterhub is behind a reverse proxy?

I have managed to see the page "Waiting for decode worker", then after timeout I get the connect.html but not success from there.
The logs show "Websocket connection established to ws://localhost:38631/" so it seems there are no websocket problems, but I am not sure. The host reverse proxy forwards to the jupyterhub proxy, but I am not sure websockets are also forwarded, because they use a random port, as 38631.

Other potential problem is the AES encryption. The connect page shows 3 options: AES-CBC, AES-CFB and AES-CTR. The plugin sends encryption=AES without more details.

Thanks
Victor

@jhgoebbert
Copy link
Collaborator

jhgoebbert commented Mar 8, 2023

Hi Victor,
this plugin starts an xpra session with the command you find here
The port is choosen by jupyter-server-proxy and fixed as you can see here
same as the encryption as you can see here
The AES key and the token are passed through the URL as you can see here

I would suggest you check your setup starting an xpra session manually on your system first and try to use jupyter-server-proxy's arbitrary-port-access ability to access it. This plugin is not doing anything else, just in a more convenient way.

@victor-moreno
Copy link
Author

Thanks, I managed to run it, but had to remove the authentification parameters.
If I find out the problem I will post it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants