I am trying to setup a repo2docker Container with two active server processes inside.
On the one hand it serves a jupyter notebook server and on the other a login gui. To serve the login gui i’m using a start skript, that simply starts the login gui server in the background.
The login gui http port serves on port 1709 and i can access that port via the Jupyter-Server-Proxy by substituting /tree in the url with /proxy/1709/.
The Problem is, that if i access it, i get redirected to /signin. In docker2repo this redirect is attached directly behind the base url. That substitutes the proxying /proxy/1709. The same problem also occurs for all the static files on the /static route.
In mybinder this problem is even worse, because it substitutes the long user specific my binder url and then after it failed, it tries to redirect to /hub/signin.
Is it possible to configure a repository in a way, that enables me to add a /proxy/1709/ in front of all the redirects that are carried out by our internal GUI without changin the redirects inside the GUIs Server itself? That means, just by configuring the jupyter-server-proxy?