Skip to content

Commit 0e6b2c7

Browse files
committed
Set version 30 and changelog
1 parent 31020ab commit 0e6b2c7

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## Version `30` - 2023-06-03
2+
* Use `HTTPS_CERT_FILE` and `HTTPS_KEY_FILE` to specify path to a certificate.
3+
14
## Version `29` - 2023-03-16
25
* Publishing this image to Github Container Registry. Available at `docker pull ghcr.io/mendhak/http-https-echo:latest`
36

README.md

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

1010
![browser](https://raw.githubusercontent.com/mendhak/docker-http-https-echo/master/screenshots/screenshot.png)
1111

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

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

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

4242
Run with Docker
4343

44-
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:29
44+
docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:30
4545

4646
Or run with Docker Compose
4747

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

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

61-
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:29
61+
docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:30
6262

6363

6464
With docker compose, this would be:
6565

6666
my-http-listener:
67-
image: mendhak/http-https-echo:29
67+
image: mendhak/http-https-echo:30
6868
environment:
6969
- HTTP_PORT=8888
7070
- HTTPS_PORT=9999
@@ -80,7 +80,7 @@ The certificates are at `/app/fullchain.pem` and `/app/privkey.pem`.
8080
You can use volume mounting to substitute the certificate and private key with your own.
8181

8282
my-http-listener:
83-
image: mendhak/http-https-echo:29
83+
image: mendhak/http-https-echo:30
8484
ports:
8585
- "8080:8080"
8686
- "8443:8443"
@@ -95,7 +95,7 @@ You can use the environment variables `HTTPS_CERT_FILE` and `HTTPS_KEY_FILE` to
9595

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

98-
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:29
98+
docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:30
9999

100100

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

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

111-
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:29
111+
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:30
112112

113113

114114
## Do not log specific path
115115

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

119-
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:29
119+
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:30
120120

121121

122122
With docker compose, this would be:
123123

124124
my-http-listener:
125-
image: mendhak/http-https-echo:29
125+
image: mendhak/http-https-echo:30
126126
environment:
127127
- LOG_IGNORE_PATH=/ping
128128
ports:
@@ -153,15 +153,15 @@ Will contain a `json` property in the response/output.
153153
You can disable new lines in the log output by setting the environment variable `LOG_WITHOUT_NEWLINE`. For example,
154154

155155
```bash
156-
docker run -e LOG_WITHOUT_NEWLINE=true -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:29
156+
docker run -e LOG_WITHOUT_NEWLINE=true -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:30
157157
```
158158

159159
## Send an empty response
160160

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

163163
```bash
164-
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:29
164+
docker run -e ECHO_BACK_TO_CLIENT=false -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:30
165165
```
166166

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

244244
```bash
245-
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:29
245+
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:30
246246
```
247247

248248
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ version: '3'
22
services:
33

44
my-http-listener:
5-
image: mendhak/http-https-echo:29
5+
image: mendhak/http-https-echo:30
66
environment:
77
- HTTP_PORT=8888
88
- HTTPS_PORT=9999
99
ports:
1010
- "8080:8888"
1111
- "8443:9999"
12-
# volumes:
13-
# - /etc/ssl/certs/ssl-cert-snakeoil.pem:/app/fullchain.pem
14-
# - /etc/ssl/private/ssl-cert-snakeoil.key:/app/privkey.pem

0 commit comments

Comments
 (0)