Update 11_install_nginx.sh

This commit is contained in:
ymir1v 2021-06-25 15:42:15 +02:00 committed by GitHub
parent d5e8725640
commit 5aaba04926
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,14 @@ openssl req -subj "/CN=$HOSTNAME/O=My Company Name LTD./C=US" -new -newkey rsa:2
chown -R wildduck:wildduck /etc/wildduck/certs
chmod 0700 /etc/wildduck/certs/privkey.pem
# create nginx config dirs - if missing
if [[ ! -d /etc/nginx/sites-available ]]; then
mkdir -p /etc/nginx/sites-available
fi
if [[ ! -d /etc/nginx/sites-enabled ]]; then
mkdir -p /etc/nginx/sites-enabled
fi
# Setup domain without SSL at first, otherwise acme.sh will fail
echo "server {
listen 80;