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
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,18 @@
4
4
5
5
6
6
7
-
8
-
[`mendhak/http-https-echo`](https://hub.docker.com/r/mendhak/http-https-echo) is a Docker image that can echo various HTTP request properties back to client, as well as in the Docker container logs.
9
-
You can use your own certificates, choose your ports, decode JWT headers and filter out certain paths.
7
+
`mendhak/http-https-echo` is a Docker image that can echo various HTTP request properties back to client in the response, as well as in the Docker container logs.
8
+
It comes with various options that can manipulate the response output, see the table of contents for a full list.
This image is executed as non root by default and is fully compliant with Kubernetes or Openshift deployment.
12
+
The image is available on [Docker Hub](https://hub.docker.com/r/mendhak/http-https-echo): `mendhak/http-https-echo:29`
13
+
The image is available on [Github Container Registry](https://github.com/mendhak/docker-http-https-echo/pkgs/container/http-https-echo): `ghcr.io/mendhak/http-https-echo:29`
14
14
15
15
Please do not use the `:latest` tag as it will break without warning, use a specific version instead.
16
16
17
+
This image is executed as non root by default and is fully compliant with Kubernetes or Openshift deployment.
18
+
17
19
18
20
-[Basic Usage](#basic-usage)
19
21
-[Choose your ports](#choose-your-ports)
@@ -39,7 +41,7 @@ Please do not use the `:latest` tag as it will break without warning, use a spec
39
41
40
42
Run with Docker
41
43
42
-
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:28
44
+
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:29
43
45
44
46
Or run with Docker Compose
45
47
@@ -56,13 +58,13 @@ You can choose a different internal port instead of 8080 and 8443 with the `HTTP
56
58
57
59
In this example I'm setting http to listen on 8888, and https to listen on 9999.
Now make your request with `Authentication: eyJ...` header (it should also work with the `Authentication: Bearer eyJ...` schema too):
@@ -103,21 +105,21 @@ And in the output you should see a `jwt` section.
103
105
104
106
In the log output set the environment variable `DISABLE_REQUEST_LOGS` to true, to disable the specific ExpressJS request log lines. The ones like `::ffff:172.17.0.1 - - [03/Jan/2022:21:31:51 +0000] "GET /xyz HTTP/1.1" 200 423 "-" "curl/7.68.0"`. The JSON output will still appear.
0 commit comments