-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Fix basePath #1272
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
Fix basePath #1272
Conversation
Edited the message just to reference GH-1237 and allow a merge to auto-close this.
My understanding about --base-path
is different.
I can pass any random path to the flag --base-path
and code-server should run in that path.
eg: --base-path=/akhil/server1
then code server should be up and running in the path /akhil/server1
. This is a common functionality available in almost all web apps like Prometheus, grafana, jupyter, kibana etc. etc.
Implementation could be different, but this is the ask of all those issues raised saying base path is not working.
Any thoughts??
@code-asher Let me try to break it down for you.
The requirement is, we need to run multiple code-servers behind the proxy for multiple users.
Now this can be achieved this by rewriting the URL inside the proxy server. But not all proxy servers support this feature (eg: configurable-http-proxy).
if we can run the app in the context or path provided by the --base-path
all proxies will be able to handle the code-server.
@code-asher We dont need to do anything extra for proxy's with rewrite capability. It will work out of the box.
See #1237
Uh oh!
There was an error while loading. Please reload this page.
This PR fixes #1237