Skip to content
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

Expose remote address as environment variable #709

Open
davekok opened this issue Jun 22, 2021 · 0 comments
Open

Expose remote address as environment variable #709

davekok opened this issue Jun 22, 2021 · 0 comments

Comments

@davekok
Copy link

davekok commented Jun 22, 2021

Is your feature request related to a problem? Please describe.
For simple configure/maintance bash scripts running over a term.js it would be nice to have some knowledge of the user agent. So this can be used in configuring the environment for the user. Like setting up a dev environment where xdebug needs to know the remote address of where the client (IDE) is listening.

Describe the solution you'd like
Expose HTTP information headers as environment variables to the command ttyd execute. By preference through an option.

Describe alternatives you've considered
Autodiscovering the client through varies means, asking the user for their IP address. None work in all situations, like when running in a container. IDE try to pass the right information but without indepth knowledge of the container environment can't always get the right one.

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

No branches or pull requests

1 participant