Skip to content

code-server with the --proxy-domain #6091

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
a224327780 opened this issue Mar 21, 2023 · 3 comments
Closed

code-server with the --proxy-domain #6091

a224327780 opened this issue Mar 21, 2023 · 3 comments
Labels
duplicate enhancement Some improvement that isn't a feature

Comments

@a224327780
Copy link

  • log
[2023-03-21T03:41:18.044Z] info  HTTP server listening on http://0.0.0.0:7071/
[2023-03-21T03:41:18.044Z] info    - Authentication is enabled
[2023-03-21T03:41:18.044Z] info      - Using password from $PASSWORD
[2023-03-21T03:41:18.044Z] info    - Not serving HTTPS
[2023-03-21T03:41:18.044Z] info    - Proxying the following domain:
[2023-03-21T03:41:18.044Z] info      - *.code-server.xxx.xyz

image

@a224327780 a224327780 added the enhancement Some improvement that isn't a feature label Mar 21, 2023
@code-asher
Copy link
Member

code-asher commented Mar 21, 2023

Yeah this is confusing, currently we default to the path-based proxy even if a proxy domain is set.

There is an issue for it here: #5311

For now the workaround is to manually set the VSCODE_PROXY_URI environment variable to https://{{port}}.code-server.xxx.xyz.

More discussion here: #6092

@repo-ranger
Copy link
Contributor

repo-ranger bot commented Mar 21, 2023

⚠️ This issue has been marked duplicate and will be closed in 2 days.

@a224327780
Copy link
Author

Yeah this is confusing, currently we default to the path-based proxy even if a proxy domain is set.

There is an issue for it here: #5311

For now the workaround is to manually set the VSCODE_PROXY_URI environment variable to https://{{port}}.code-server.xxx.xyz.

➜  workspace echo $VSCODE_PROXY_URI
https://{{port}}.code-server.xxx.xyz
  • Setting environment variables still doesn't work

@repo-ranger repo-ranger bot closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests

2 participants