-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
base url support #241
Comments
@yamajik I think there are already docs on how to run it behind a proxy https://github.com/codercom/code-server/blob/master/doc/self-hosted/index.md#user-content-nginx-reverse-proxy |
I am managing many code servers behind a proxy. |
I wanne config for global baseurl setting |
I just found code-server, and I want to give it a try, but without base url support it looks like I'll have to setup a separate subdomain for it on my website, which is pretty inconvenient. |
@tiffany352 @yamajik have you tried using Docker with different IPs to see if it works as a temporary workaround? This is possible by creating a new network. |
I also request this. It's a non-starter if I can't use it at another HTTP path, instead of /. @sr229 that won't help. The issue is that you cannot set it up to be at http://myserver.foo/vscode/, rather it must be at http://myserver.foo/ |
I also would like this functionality to be added in, preferably as an environment variable such as LetsEncrypt limits the number of SSL certs for subdomains on one host, thus taking up another subdomain is not preferable. |
@sgama Off topic, but I'm kind of confused about your LE comment, I don't see any kind of limit other than (large) rate limits on certificate issuing? There's also wildcard certificates available now. I ended up just making a new subdomain to run code-server on, and it's working fine. |
@tiffany352, oh right. Wildcards are available now. Thanks for reminding me. |
This should be fixed. The socket should now be created at the current page path. |
Not sure. resourse urls Both incorrect. I have fixed some in my fork. |
reopen this, plz. |
I will pr my fix later which may not fix all. |
+1 |
We'll have to remove the |
+1 this will be a big help for us |
@yamajik Thank you for the PR to add this feature. Any documentation on how we utilize this? Looking at your code it seems like you are fixing up the URLs? So if we have a server running behind a proxy pointing at something like http:///patrickstjohn it would strip off patrickstjohn and things would work as if you were going to / directly? |
Index page is redirecting |
@patrickstjohn In my case, I wanne run behind url First, run code server on In my pr, fixed all incorrect frontend urls I found. I should miss some. |
@au5ton Yelp. Miss one. This is a wrong server url. Using relative path or adding a prefix path config both fix this. Or u can run behind a reverse proxy server and do not mind it. |
This block is working correctly for when a baseurl is provided (via the By working, I mean that |
I have succeeded to run code-server in a subpath behind nginx using a rewrite. It mostly seems to work, even without anything "baseurl" related. ´´´ |
Has the team considered implementing this feature? Today is the first day I tried this damn cool project. 🎉 But when I deployed it to my HTTP server, I ran into the same problem. And the #307 doesn't seem to solve the problem of the HTTP request's paths. Now my HTTP server will still receive requests for files such as |
CC @coadler and @multishifties, looks like this issue is persistent, and we have multiple significant use cases. Recommending escalation. |
I'll tag Kyle for this one since this feature has been requested a lot. |
I wanne run behind proxy
The text was updated successfully, but these errors were encountered: