Add HTTPS port to echoheaders
This commit is contained in:
parent
5101e74347
commit
665985921b
6 changed files with 29 additions and 3 deletions
11
images/echoheaders/run.sh
Normal file
11
images/echoheaders/run.sh
Normal 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;"
|
||||
Loading…
Add table
Add a link
Reference in a new issue