Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down