-
Notifications
You must be signed in to change notification settings - Fork 6k
code-server behind apache proxy #282
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
Comments
I don't know a ton of Apache so I may not be too helpful here, but this is the working NGINX config. |
I've those rules after the ServerName definition and it seem's to do the job.
|
@Foxtur Yes, that worked! Thanks! |
Could we possibly get a PR to update the docs with Apache instructions? |
This stopped working for V2, do you know how to fix it? |
@waclaw66 For V2 try changing the port from 3000 to the port that code-server runs on (in my case 8443). Mine looks like this and it works for me:
Also FYI make sure you have the required modules enabled:
|
@JtMotoX thanks for your answer, but the original settings works again in the latest version of code-server. I just forgot to update it here. |
Hi, Can someone please share whole .conf file. having hard time setting up. Thanks. /etc/apache2/sites-available/vscode.mydomain.com-le-ssl.conf
/etc/systemd/system/code-server.service
|
@amitkhare, I didn't post my entire config because mine is slightly more complicated than most. I will post it here since you asked. Hope it helps. My Setup:
Apache Reverse Proxy (condensed):
Nginx Reverse Proxy (condensed) (running on my macbook):
|
@NGTmeaty sorry bro, this file is missing, do you have an updated link ? |
Description
I can't figure out the correct apache config in order to proxy https and wss requests correctly. My apache config looks something like this:
My problem is now, that this configuration blocks all websocket requests. In order to also proxy websocket connections I would need to add something like this to my apache config:
The problem with this is, that this will not work with the same url path like the https proxy statements (https://code.mydomain.net/ and wss://code.mydomain.net/). Usually the websocket connection would be handled by a different path (eg.: wss://code.mydomain.net/websocket/).
So my question is: Is there any way to achieve this with code-server and apache?
The text was updated successfully, but these errors were encountered: