Skip to content

Add ability to host on subdirectory #90

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
WizzardMaker opened this issue Sep 29, 2021 · 5 comments
Closed

Add ability to host on subdirectory #90

WizzardMaker opened this issue Sep 29, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@WizzardMaker
Copy link

I would like to be able to host VS Code on a subdir on my domain (e.g. my-domain.com/vscode/), but a lot of scripts and the websocket connections default to the subdir-less host and often drop the correct referer, making it hard to serve VSCode on a subdirectory with nginx.

@filiptronicek filiptronicek added the enhancement New feature or request label Oct 26, 2021
@akosyakov
Copy link
Member

@jeanp413 @filiptronicek Does new server support it? If not I don't think we can do anything here. One should fork and change baseUrl in workbench.html and workbench.ts as far as I understand it.

@Livven
Copy link

Livven commented Nov 3, 2021

We are in the process of migrating from code-server and also ran into this issue. We've gotten it mostly running now, only things missing are service worker calls and syntax highlighting as far as I can tell. Will open a PR once we have it in a decent state, which should be later this week or early next week.

@akosyakov
Copy link
Member

Just to clarify we are not going to accept changes to the server, since it was open-sourced by MS: https://www.gitpod.io/blog/vscode-server It would be the best if you open a PR in the upstream: https://github.com/microsoft/vscode

@akosyakov
Copy link
Member

I'm going to close it for now. I think it is the upstream issue.

@fritterhoff
Copy link

We are in the process of migrating from code-server and also ran into this issue. We've gotten it mostly running now, only things missing are service worker calls and syntax highlighting as far as I can tell. Will open a PR once we have it in a decent state, which should be later this week or early next week.

Would be great if you manage to get it working inside a subfolder. I'm also very interested in hosting the server in an other path than root 😀 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants