-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Support proxying ports without separate sub-domains #6195
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
Ah yeah the subdomain proxy requires that the port be the first and only part of the sub-domain, so something like |
Perhaps we can compromise and adopt the method I suggested, which can eliminate the need to apply for another wildcard SSL certificate. |
Sure, that seems like a good reason. |
This will make it into the next release but I am not sure it actually solves this particular problem. You still need separate (sub)domains for every single port. 5140-code.domain.ltd This still requires a wildcard cert right? The only way to not require multiple domains is to use the path-based proxy. |
I need it to run multiple code-servers on k8s.
|
Ahhh I see! That use case makes sense. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.12.0Steps to Reproduce
config env
PROXY_DOMAIN: domain.ltd
VSCODE_PROXY_URI: https://{{port}}-code.domain.ltd
open https://{{port}}-code.domain.ltd redirect to coder-server
Expected
redirect to loca proxy port
Actual
redirect to coder-server
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
#5311
code-server/src/node/routes/domainProxy.ts
Lines 22 to 29 in 5708e6c
maybe can use regex to match port
example
VSCODE_PROXY_URI {{port}}-code.domain.ltd
5140-code.domain.ltd match port to 5140
The text was updated successfully, but these errors were encountered: