You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,30 @@
1
1
# 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.
3
4
4
5
### How it works?
5
-
- starts listening on port 8081 for http traffic
6
+
7
+
- Starts listening on port 8081 for HTTP traffic
6
8
- On every request it returns following things:
7
9
- Request Type
8
10
- Hostname or Host of request
9
11
- Local IP of Container
10
12
- Remote IP
11
13
- All Request Headers
12
-
- And Environment Varibale called `YOUR_ENV`
14
+
- And Environment Variable called `YOUR_ENV`
13
15
14
16
### 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.
21
25
22
26
#### To Do
27
+
23
28
-[x] Make std output/logs colored and pretty 😅
24
29
-[ ] Add Environment Variable to switch text output to html output
0 commit comments