Skip to content

Commit cd8125c

Browse files
committed
Version bump to 33 and changelog
1 parent af18827 commit cd8125c

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Version `33` - `2024-04-07`
2+
* Implementing configurable CORS settings by [ash0ne](https://github.com/mendhak/docker-http-https-echo/pull/65).
3+
14
## Version `32` - `2024-03-28`
25
* Update Express to 4.19.2 to address CVE-2024-29041
36

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ It comes with various options that can manipulate the response output, see the t
88

99
![browser](./screenshots/screenshot.png)
1010

11-
The image is available on [Docker Hub](https://hub.docker.com/r/mendhak/http-https-echo): `mendhak/http-https-echo:32`
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:32`
11+
The image is available on [Docker Hub](https://hub.docker.com/r/mendhak/http-https-echo): `mendhak/http-https-echo:33`
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:33`
1313

1414
Please do not use the `:latest` tag as it will break without warning, use a specific version instead.
1515

@@ -42,7 +42,7 @@ This image is executed as non root by default and is fully compliant with Kubern
4242

4343
Run with Docker
4444

45-
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:32
45+
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:33
4646

4747
Or run with Docker Compose
4848

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

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

62-
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:32
62+
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:33
6363

6464

6565
With docker compose, this would be:
6666

6767
my-http-listener:
68-
image: mendhak/http-https-echo:32
68+
image: mendhak/http-https-echo:33
6969
environment:
7070
- HTTP_PORT=8888
7171
- HTTPS_PORT=9999
@@ -81,7 +81,7 @@ The certificates are at `/app/fullchain.pem` and `/app/privkey.pem`.
8181
You can use volume mounting to substitute the certificate and private key with your own.
8282

8383
my-http-listener:
84-
image: mendhak/http-https-echo:32
84+
image: mendhak/http-https-echo:33
8585
ports:
8686
- "8080:8080"
8787
- "8443:8443"
@@ -96,7 +96,7 @@ You can use the environment variables `HTTPS_CERT_FILE` and `HTTPS_KEY_FILE` to
9696

9797
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.
9898

99-
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:32
99+
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:33
100100

101101

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

110110
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.
111111

112-
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:32
112+
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:33
113113

114114

115115
## Do not log specific path
116116

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

120-
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:32
120+
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:33
121121

122122

123123
With docker compose, this would be:
124124

125125
my-http-listener:
126-
image: mendhak/http-https-echo:32
126+
image: mendhak/http-https-echo:33
127127
environment:
128128
- LOG_IGNORE_PATH=/ping
129129
ports:
@@ -154,15 +154,15 @@ Will contain a `json` property in the response/output.
154154
You can disable new lines in the log output by setting the environment variable `LOG_WITHOUT_NEWLINE`. For example,
155155

156156
```bash
157-
docker run -e LOG_WITHOUT_NEWLINE=true -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:32
157+
docker run -e LOG_WITHOUT_NEWLINE=true -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:33
158158
```
159159

160160
## Send an empty response
161161

162162
You can disable the JSON output in the response by setting the environment variable `ECHO_BACK_TO_CLIENT`. For example,
163163

164164
```bash
165-
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:32
165+
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:33
166166
```
167167

168168
## Custom status code
@@ -243,7 +243,7 @@ You can have environment variables (that are visible to the echo server's proces
243243
Pass the `ECHO_INCLUDE_ENV_VARS=1` environment variable in.
244244

245245
```bash
246-
docker run -d --rm -e ECHO_INCLUDE_ENV_VARS=1 --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:32
246+
docker run -d --rm -e ECHO_INCLUDE_ENV_VARS=1 --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:33
247247
```
248248

249249
Then do a normal request via curl or browser, and you will see the `env` property in the response body.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
my-http-listener:
4-
image: mendhak/http-https-echo:32
4+
image: mendhak/http-https-echo:33
55
environment:
66
- HTTP_PORT=8888
77
- HTTPS_PORT=9999

0 commit comments

Comments
 (0)