Skip to content

Commit ce83407

Browse files
committed
Point readme at 25 tag
1 parent d370edd commit ce83407

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Please do not use the `:latest` tag as it will break without warning, use a spec
1818

1919
Run with Docker
2020

21-
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:24
21+
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:25
2222

2323
Or run with Docker Compose
2424

@@ -35,13 +35,13 @@ You can choose a different internal port instead of 8080 and 8443 with the `HTTP
3535

3636
In this example I'm setting http to listen on 8888, and https to listen on 9999.
3737

38-
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:24
38+
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:25
3939

4040

4141
With docker compose, this would be:
4242

4343
my-http-listener:
44-
image: mendhak/http-https-echo:24
44+
image: mendhak/http-https-echo:25
4545
environment:
4646
- HTTP_PORT=8888
4747
- HTTPS_PORT=9999
@@ -55,7 +55,7 @@ With docker compose, this would be:
5555
Use volume mounting to substitute the certificate and private key with your own. This example uses the snakeoil cert.
5656

5757
my-http-listener:
58-
image: mendhak/http-https-echo:24
58+
image: mendhak/http-https-echo:25
5959
ports:
6060
- "8080:8080"
6161
- "8443:8443"
@@ -69,7 +69,7 @@ Use volume mounting to substitute the certificate and private key with your own.
6969

7070
If you specify the header that contains the JWT, the echo output will contain the decoded JWT. Use the `JWT_HEADER` environment variable for this.
7171

72-
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:24
72+
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:25
7373

7474

7575
Now make your request with `Authentication: eyJ...` header (it should also work with the `Authentication: Bearer eyJ...` schema too):
@@ -82,21 +82,21 @@ And in the output you should see a `jwt` section.
8282

8383
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.
8484

85-
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:24
85+
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:25
8686

8787

8888
## Do not log specific path
8989

9090
Set the environment variable `LOG_IGNORE_PATH` to a path you would like to exclude from verbose logging to stdout.
9191
This can help reduce noise from healthchecks in orchestration/infrastructure like Swarm, Kubernetes, ALBs, etc.
9292

93-
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:24
93+
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:25
9494

9595

9696
With docker compose, this would be:
9797

9898
my-http-listener:
99-
image: mendhak/http-https-echo:24
99+
image: mendhak/http-https-echo:25
100100
environment:
101101
- LOG_IGNORE_PATH=/ping
102102
ports:
@@ -127,7 +127,7 @@ Will contain a `json` property in the response/output.
127127
You can disable the JSON output in the response by setting the environment variable `ECHO_BACK_TO_CLIENT`. For example,
128128

129129
```bash
130-
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:24
130+
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:25
131131
```
132132

133133
## Custom status code

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
my-http-listener:
2-
image: mendhak/http-https-echo:24
2+
image: mendhak/http-https-echo:25
33
environment:
44
- HTTP_PORT=8888
55
- HTTPS_PORT=9999

0 commit comments

Comments
 (0)