simple-http-server returns ip address, headers and many other request data. use this as a test app to to deploy in your servers or practice to deploy
- starts listening on port 8081 for http traffic
- On every request it returns following things:
- Request Type
- Hostname or Host of request
- Local IP of Container
- Remote IP
- All Request Headers
- And Environment Varibale called
YOUR_ENV
- I've hosted this imager on docker hub or you can build it yourself if you want to
-
sudo docker run -p 8081:8081 pareshpawar/simple-http-server
- optionally, forward port via your proxy or load balancer
- Make std output/logs colored and pretty 😅
- Add Environment Variable to switch text output to html output
- Serve a html pages from a external directory