Closed octopus2181 closed 6 months ago
Thank you for the reproduction details! I had trouble using them because it seems Swag is trying to generate real certificates and it does not look like they have an option to generate self-signed certificates?
Could you run code-server again with the LOG_LEVEL=debug
environment variable and tell me if you see any messages like "blocking request"?
Looks like /config/nginx/proxy.conf
contains these lines:
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
I think you already tried setting Host
, right? code-server will prefer X-Forwarded-Host
over Host
so it might work to override it:
proxy_set_header X-Forwarded-Host $http_host;
We really need to fix https://github.com/coder/code-server/issues/6166
Oh , yes ! I am setting proxy_set_header X-Forwarded-Host $http_host
,it woks . The port 9091 can connect to the code-server .
Thank you !
Is there an existing issue for this?
OS/Web Information
code-server --version
: codercom/code-serverSteps to Reproduce
Expected
Because my port 443 remote access is forbidden, I want to works with a different port (such as 9091 ).
Actual
"The workbench failed to connect to the server (Error: WebSocket close with status code 1006)"
Logs
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over a secure context?
Notes
No response