prepare for nginx docker image

This commit is contained in:
Marco Ochse
2018-02-16 15:17:34 +01:00
parent 8e76d4c909
commit 46c92047cb
17 changed files with 439 additions and 0 deletions

12
docker/nginx/dist/conf/ssl/gen-cert.sh vendored Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Got root?
myWHOAMI=$(whoami)
if [ "$myWHOAMI" != "root" ]
then
echo "Need to run as root ..."
exit
fi
openssl req -nodes -x509 -sha512 -newkey rsa:8192 -keyout "nginx.key" -out "nginx.crt" -days 3650