Add HTTPS port to echoheaders

This commit is contained in:
Nick Sardo 2018-02-14 13:24:38 -08:00
parent 5101e74347
commit 665985921b
6 changed files with 29 additions and 3 deletions

11
images/echoheaders/run.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
echo "Generating self-signed cert"
mkdir -p /certs
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 \
-keyout /certs/privateKey.key \
-out /certs/certificate.crt \
-subj "/C=UK/ST=Warwickshire/L=Leamington/O=OrgName/OU=IT Department/CN=example.com"
echo "Starting nginx"
nginx -g "daemon off;"