ingress-nginx-helm/images/echoheaders/run.sh
2018-02-14 14:07:45 -08:00

11 lines
No EOL
318 B
Bash

#!/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;"