From d96df397d3257acbcdf76ea632c37fb561aeaa67 Mon Sep 17 00:00:00 2001 From: aliat110 Date: Sat, 30 Sep 2023 14:03:27 +0530 Subject: [PATCH 1/2] fix readme nits --- README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 017263f..73a3dbb 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,30 @@ # 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 + +`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 + +- 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` + - And Environment Variable 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 -- - ```bash - sudo docker run -p 8081:8081 pareshpawar/simple-http-server - ``` -- optionally, forward port via your proxy or load balancer + +- I've hosted this image on [Docker Hub](https://hub.docker.com/r/pareshpawar/simple-http-server) or you can build it yourself if you want to. + + ```bash + sudo docker run -p 8081:8081 pareshpawar/simple-http-server + ``` + +- Optionally, forward port via your proxy or load balancer. #### To Do + - [x] 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 From a1dd9d395b235fb83e9884e32976bfe954c2864c Mon Sep 17 00:00:00 2001 From: aliat110 Date: Sat, 30 Sep 2023 14:05:56 +0530 Subject: [PATCH 2/2] capitalize http --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 73a3dbb..921dd92 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ### How it works? -- Starts listening on port 8081 for http traffic +- Starts listening on port 8081 for HTTP traffic - On every request it returns following things: - Request Type - Hostname or Host of request