Skip to content

Add environment variable with server URL #1939

Closed

Description

@ribrdb

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.

Activity

  1. code-asher commented on Aug 3, 2020

    @code-asher
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions