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
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ It comes with various options that can manipulate the response output, see the t
8
8
9
9

10
10
11
-
The image is available on [Docker Hub](https://hub.docker.com/r/mendhak/http-https-echo): `mendhak/http-https-echo:40`
12
-
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:40`
11
+
The image is available on [Docker Hub](https://hub.docker.com/r/mendhak/http-https-echo): `mendhak/http-https-echo:41`
12
+
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:41`
13
13
14
14
Please do not use the `:latest` tag as it will break without warning, use a specific version instead.
15
15
@@ -47,7 +47,7 @@ This image is executed as non root by default and is fully compliant with Kubern
47
47
48
48
Run with Docker
49
49
50
-
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:40
50
+
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:41
51
51
52
52
Or run with Docker Compose
53
53
@@ -64,13 +64,13 @@ You can choose a different internal port instead of 8080 and 8443 with the `HTTP
64
64
65
65
In this example I'm setting http to listen on 8888, and https to listen on 9999.
@@ -86,7 +86,7 @@ The certificates are at `/app/fullchain.pem` and `/app/testpk.pem`.
86
86
You can use volume mounting to substitute the certificate and private key with your own.
87
87
88
88
my-http-listener:
89
-
image: mendhak/http-https-echo:40
89
+
image: mendhak/http-https-echo:41
90
90
ports:
91
91
- "8080:8080"
92
92
- "8443:8443"
@@ -101,14 +101,14 @@ You can use the environment variables `HTTPS_CERT_FILE` and `HTTPS_KEY_FILE` to
101
101
102
102
By default, Express is configured to trust forwarded proxy headers from loopback, link-local, and private IP ranges. To also trust additional proxy IPs or subnets, set `ADDITIONAL_TRUSTED_PROXIES` to a single value or a comma-separated list.
Now make your request with `Authentication: eyJ...` header (it should also work with the `Authentication: Bearer eyJ...` schema too):
@@ -121,7 +121,7 @@ And in the output you should see a `jwt` section.
121
121
122
122
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.
By default, the headers in the response body are lowercased. To attempt to preserve the case of headers in the response body, set the environment variable `PRESERVE_HEADER_CASE` to true.
0 commit comments