Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: delegate path based forwarding to code-server#11759

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 1 commit intomainfromstevenmasley/code-server-path-forward
Jan 23, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJan 22, 2024
edited
Loading

Do not attempt to construct a path based port forward url. Always defer to code server, as it has it's own proxy method.

Closes#11754

What this does

I am not sure how this ever worked. We used to always set theVSCODE_PROXY_URI no matter what to some url (access url or subdomain based). In the access url case, we never appended any path.

In practice, code-server can forward ports itself with/@admin/adminlocal.main/apps/code-server/proxy/8000/.

In the path based proxy case, we should default to not setting an env var. Code server handles this case appropriately:

https://github.com/coder/code-server/blob/d6ef385de271ca53520cdd459bfcc91e9ee4dd02/patches/proxy-uri.diff#L78

If the env var is unset, it will use/proxy/{{port}}, which is exactly what we want. If subdomains are available, the env var is set and are used instead.

Screenshot from 2024-01-22 14-27-37

Do not attempt to construct a path based port forward url.Always defer to code server, as it has it's own proxy method.
@EmyrkEmyrk changed the titlefix: code-server path based forwarding, defer to code-serverfix: delegate path based forwarding to code-serverJan 22, 2024
@EmyrkEmyrk merged commit081fbef intomainJan 23, 2024
@EmyrkEmyrk deleted the stevenmasley/code-server-path-forward branchJanuary 23, 2024 17:36
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 23, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@code-ashercode-ashercode-asher approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

bug: Path-based VS Code port forwarding broken in v2.7.1
3 participants
@Emyrk@deansheather@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp