Skip to content

Add environment variable with server URL #1939

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
ribrdb opened this issue Aug 3, 2020 · 1 comment
Closed

Add environment variable with server URL #1939

ribrdb opened this issue Aug 3, 2020 · 1 comment

Comments

@ribrdb
Copy link

ribrdb commented Aug 3, 2020

It would be really cool if code-server could put an env var into the terminals it starts that tells what url is being used to access the server.

In particular I want to use this in scripts that start servers, so I can print out http://localhost:8080 when running under normal vscode, but https://myserver.com/proxy/8080 when running under code server.

I'd also use this to configure the upstreamProxy setting of karma when running under code-server.

@ribrdb ribrdb added the feature label Aug 3, 2020
@code-asher
Copy link
Member

I think this is a duplicate of #1510 although with a different use case. We'll add an environment variable with a name like CODE_SERVER_HTTP_REFERER.

I'll close so we can track on the other issue but thanks for opening this since it gives additional perspective on the original issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants