Deploying code-server to a nested URL such as /code will result in assets being requested from /, when they should be /code.
The HTML source code references root-level assets:
<script type="text/javascript" src="main.js"></script>
We should, instead, allow users to specify if they are hosting on a nested URL like /code, thus appending the host to the HTML:
./code-server --host=0.0.0.0/code
<script type="text/javascript" src="/code/main.js"></script>
/code, or /johhny/codescode), but instead, are requested from the root / URLCame here to report the same thing when reverse proxying with NGINX to /code
Paths are relative now.
Awesome. How do we specify the URL?
It's relative, so you don't need to specify anything. If code server is available at /code, resource requests will go to /code/resource, for example.
I just wanted to report that this does work, however if not logged in I get redirected away from my /code/ to /login/ which doesn't exist (should be /code/login/)
Most helpful comment
I just wanted to report that this does work, however if not logged in I get redirected away from my /code/ to /login/ which doesn't exist (should be /code/login/)