Skip to content

Simple HTTP server that prints environment variables and details about request

Notifications You must be signed in to change notification settings

jstastny/env-echoserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP server that prints all the environments variables on GET request together with information about the request.

This was useful for some Kubernetes ingress / service debugging, where I used it to get information about the Pod that served the request. Example Kuberentes manifest using StatefulSet is in k8s.yaml

Docker

Docker image for this repo is available on DockerHub: https://hub.docker.com/r/jstastny/envechoserver

Configuration

Optionally, HOST and PORT environment can be used to configure, which host and port the server should be listening at. The defaults are 0.0.0.0 for HOST and 3000 for PORT.

About

Simple HTTP server that prints environment variables and details about request

Resources

Stars

Watchers

Forks

Packages

No packages published