This commit is contained in:
Alex Thomassen 2018-10-25 06:40:02 +02:00 committed by GitHub
parent 8e15482dbf
commit c8d0e96347
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
GIST="https://gist.github.com/Decicus/2f09db5d30f4f24e39de3792bba75b72/raw"
NGINX="/etc/nginx"
SSL_BASE="/srv/ssl"
# Make sure the 'essentials' are installed
sudo apt install -y nginx openssl curl
@ -8,6 +9,11 @@ sudo apt install -y nginx openssl curl
# Get acme.sh for issuing certificates
curl -L https://get.acme.sh/ | sudo bash
# Create preferred base directory for storing SSL certificates
mkdir -p $SSL_BASE
chown -R root:root $SSL_BASE
chmod -R 600 $SSL_BASE
# Now the fun starts
# Get the alias config for Let's Encrypt challenges: