Simple app that responds to GET requests with a JSON payload listing all environment variables.
This application captures all environment variables that are set and returns them as a JSON object for requests made to GET /
.
Why use this? It’s a straightforward tool for debugging, testing, and development, providing an easy way to view environment variables in a container environment.
Should I run this in production? Absolutely not! This could expose sensitive information stored in your environment variables.
Whatever envirionment variables are set will be returned in the JSON, it is that simple.
For exmaple:
{
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PORT": "8080",
"PWD": "/"
}
This application runs as a docker container and can utilize the following environment variables:
PORT
- The port the application listens on. (default8080
)
Quickly get up and running by pulling the latest release from goenvecho on GitHub Packages and running it in your container environment of choice.