This commit is contained in:
parent
8e15482dbf
commit
c8d0e96347
6
setup.sh
6
setup.sh
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue