Skip to content

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

Closed
wants to merge 1 commit into from
Closed

Fix basePath #1272

wants to merge 1 commit into from

Conversation

akhilputhiry
Copy link

@akhilputhiry akhilputhiry commented Jan 13, 2020

This PR fixes #1237

@akhilputhiry akhilputhiry changed the title Addresses https://github.com/cdr/code-server/issues/1237 Fix basePath Jan 13, 2020
@sr229
Copy link
Contributor

sr229 commented Jan 13, 2020

Edited the message just to reference GH-1237 and allow a merge to auto-close this.

@sr229 sr229 added the enhancement Some improvement that isn't a feature label Jan 13, 2020
@code-asher
Copy link
Member

code-asher commented Jan 13, 2020 via email

@akhilputhiry
Copy link
Author

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
Copy link
Member

code-asher commented Jan 15, 2020 via email

@akhilputhiry
Copy link
Author

@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
Copy link
Member

code-asher commented Jan 17, 2020 via email

@code-asher
Copy link
Member

code-asher commented Jan 17, 2020 via email

@akhilputhiry
Copy link
Author

@code-asher We dont need to do anything extra for proxy's with rewrite capability. It will work out of the box.

@code-asher
Copy link
Member

code-asher commented Jan 21, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Jan 27, 2020

See #1237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

base-path option is not use.
4 participants