@@ -11,11 +11,13 @@ You can use your own certificates, choose your ports, decode JWT headers and fil
1111
1212This image is executed as non root by default and is fully compliant with Kubernetes or Openshift deployment.
1313
14+ Please do not use the ` :latest ` tag as it will break without warning, use a specific version instead.
15+
1416## Basic Usage
1517
1618Run with Docker
1719
18- docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo
20+ docker run -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:15
1921
2022Or run with Docker Compose
2123
@@ -28,17 +30,17 @@ Then, issue a request via your browser or curl, and watch the response, as well
2830
2931## Choose your ports
3032
31- You can choose a different internal port instead of 80 and 443 with the ` HTTP_PORT ` and ` HTTPS_PORT ` environment variables.
33+ You can choose a different internal port instead of 8080 and 8443 with the ` HTTP_PORT ` and ` HTTPS_PORT ` environment variables.
3234
3335In this example I'm setting http to listen on 8888, and https to listen on 9999.
3436
35- docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo
37+ docker run -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo:15
3638
3739
3840With docker compose, this would be:
3941
4042 my-http-listener:
41- image: mendhak/http-https-echo
43+ image: mendhak/http-https-echo:15
4244 environment:
4345 - HTTP_PORT=8888
4446 - HTTPS_PORT=9999
@@ -52,7 +54,7 @@ With docker compose, this would be:
5254Use volume mounting to substitute the certificate and private key with your own. This example uses the snakeoil cert.
5355
5456 my-http-listener:
55- image: mendhak/http-https-echo
57+ image: mendhak/http-https-echo:15
5658 ports:
5759 - "8080:8080"
5860 - "8443:8443"
@@ -66,7 +68,7 @@ Use volume mounting to substitute the certificate and private key with your own.
6668
6769If you specify the header that contains the JWT, the echo output will contain the decoded JWT. Use the ` JWT_HEADER ` environment variable for this.
6870
69- docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo
71+ docker run -e JWT_HEADER=Authentication -p 8080:8080 -p 8443:8443 --rm -it mendhak/http-https-echo:15
7072
7173
7274Now make your request with ` Authentication: eyJ... ` header (it should also work with the ` Authentication: Bearer eyJ... ` schema too):
@@ -80,13 +82,13 @@ And in the output you should see a `jwt` section.
8082Set the environment variable ` LOG_IGNORE_PATH ` to a path you would like to exclude from verbose logging to stdout.
8183This can help reduce noise from healthchecks in orchestration/infrastructure like Swarm, Kubernetes, ALBs, etc.
8284
83- docker run -e LOG_IGNORE_PATH=/ping -p 8080:80 -p 8443:443 --rm -t mendhak/http-https-echo
85+ docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:15
8486
8587
8688With docker compose, this would be:
8789
8890 my-http-listener:
89- image: mendhak/http-https-echo
91+ image: mendhak/http-https-echo:15
9092 environment:
9193 - LOG_IGNORE_PATH=/ping
9294 ports:
0 commit comments