Skip to content

Commit c372059

Browse files
committed
Use your own certificate section
1 parent 0eb9928 commit c372059

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@ Docker image which echoes various HTTP request properties back to client, as wel
44

55
## Usage
66

7+
Run with Docker
8+
79
docker run -p 8080:80 -p 8443:443 --rm -t mendhak/http-https-echo
810

9-
Then issue a request via your browser or curl -
11+
Or run with Docker Compose
1012

11-
curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world
13+
docker-compose up
1214

15+
Then, issue a request via your browser or curl, and watch the response, as well as container log output.
16+
17+
curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world
1318

1419

15-
## Docker Compose
20+
## Use your own certificates
1621

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

0 commit comments

Comments
 (0)