-
Notifications
You must be signed in to change notification settings - Fork 149
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
Proxying relative URLs in redirects #88
Comments
Can you give #85 a go? It should pass the external URL directly to the backend. |
@ian-r-rose I think what you need is base_url, rather than absolute URLs. I made a PR ian-r-rose/jupyterlab#1 that sets base_url, check it out and let me know if that works. |
@manics Thanks for the tip! I'll give that a shot. |
And apologies for going on a tangent instead of investigating your PR, @manics! |
I'm not sure I understand the And if I set it to |
I was probably overtired working on these last night and quite possibly missed something obvious, but here are some variously broken examples in terms of static referencing:
If I can identify the different issues and fixes, I'll try to write up some docs about how to go about setting proxied services like these up and the likely gotchas along the way. It may be that there are various things wrong in any particular example, with me trying to fix one problem when it was actually another... If I can bootstrap from working examples, (or break working examples to see how they fail) that often helps! Is there an alternative to Another observation that falls out of the above is that it is often much easier to use |
Also see my reply on https://discourse.jupyter.org/t/pgadmin-in-mybinder/365/6 |
@yuvipanda This was fixed by #85, right? |
In gitter I was chatting with @yuvipanda about the possibility of proxying one version of JupyterLab (specifically using
--dev-mode
) underneath the main one running in binder. https://gitter.im/jupyterhub/binder?at=5c42411983189945240fa7afIn trying this I ran into an issue with redirects. The proxied notebook server returns several redirects towards the default page, but when these redirects (e.g., to
/lab
), are received by the outer notebook server, they are then used to proxy to a page there rather than a page on the proxied server. This is not the effect I was looking for, and it seems to make pages in the proxied server entirely inaccessible if there is a redirect in the way.This can be tested locally in this branch by running
jupyter notebook --config=binder/config.py
. Any thoughts on how to move forward?I don't know a ton about the right language around proxies, so apologies if this is using the wrong language or is easily fixable :)
The text was updated successfully, but these errors were encountered: