/simple-http-server

Simple HTTP Server that 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

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Simple HTTP Server in Go as a Container Image

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

How it works?

  • 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

How to use it?

  • 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

To Do

  • 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