Sign inSign up

alchen99/web-echo

By alchen99

•Updated over 6 years ago

Echos HTTP/HTTPS requests for better debugging

Image
0

50K+

alchen99/web-echo repository overview

Echoes various HTTP/HTTPS request properties back to client, as well as in docker logs.

browser

⁠Building

docker build -t alchen99/web-echo .

Automated build on Docker Hub

DockerHub Badge

⁠Usage

docker run -p 8080:80 -p 8443:443 --rm -t alchen99/http-https-echo

Then issue a request via your browser or curl -

curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world
curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb http://localhost:8080/hello-world

⁠Kubernetes

Run kubectl apply command for the YAML files in the k8 directory

⁠Docker Compose

You can substitute the certificate and private key with your own. This example uses the snakeoil cert.

my-http-listener:
    image: alchen99/http-https-echo
    ports:
        - "8080:80"
        - "8443:443"
    volumes:
        - /etc/ssl/certs/ssl-cert-snakeoil.pem:/app/fullchain.pem
        - /etc/ssl/private/ssl-cert-snakeoil.key:/app/privkey.pem

⁠Output

⁠Curl output

curl

⁠docker logs output

dockerlogs

Tag summary

Content type

Image

Digest

Size

27.2 MB

Last updated

over 6 years ago

docker pull alchen99/web-echo