Skip to content

Commit 3407d9e

Browse files
authored
Merge pull request #2 from aliat110/fix_readme
Fixed readme
2 parents 79c0a85 + a1dd9d3 commit 3407d9e

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
# Simple HTTP Server in Go as a Container Image
2-
`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
2+
3+
`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.
34

45
### How it works?
5-
- starts listening on port 8081 for http traffic
6+
7+
- Starts listening on port 8081 for HTTP traffic
68
- On every request it returns following things:
79
- Request Type
810
- Hostname or Host of request
911
- Local IP of Container
1012
- Remote IP
1113
- All Request Headers
12-
- And Environment Varibale called `YOUR_ENV`
14+
- And Environment Variable called `YOUR_ENV`
1315

1416
### How to use it?
15-
- I've hosted this imager on docker hub or you can build it yourself if you want to
16-
-
17-
```bash
18-
sudo docker run -p 8081:8081 pareshpawar/simple-http-server
19-
```
20-
- optionally, forward port via your proxy or load balancer
17+
18+
- 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.
19+
20+
```bash
21+
sudo docker run -p 8081:8081 pareshpawar/simple-http-server
22+
```
23+
24+
- Optionally, forward port via your proxy or load balancer.
2125

2226
#### To Do
27+
2328
- [x] Make std output/logs colored and pretty 😅
2429
- [ ] Add Environment Variable to switch text output to html output
2530
- [ ] Serve a html pages from a external directory

0 commit comments

Comments
 (0)