Remove install letsencrypt + add install certbot + add install certificat for c2a-systeme.fr

This commit is contained in:
Mathieu Sanchez 2019-05-08 13:48:27 +09:00
parent c5b4edbe18
commit 85e558020d
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
apt-get install -y nginx
certbot certonly --manual --preferred-challenges=dns --email c2a.toulouse@gmail.com -i nginx -d c2a-systeme.fr
certbot certonly --manual --preferred-challenges=dns --email c2a.toulouse@gmail.com -i nginx -d www.c2a-systeme.fr
certbot certonly --manual --preferred-challenges=dns --email c2a.toulouse@gmail.com -i nginx -d git.c2a-systeme.fr
certbot certonly --manual --preferred-challenges=dns --email c2a.toulouse@gmail.com -i nginx -d api.c2a-systeme.fr

View File

@ -35,8 +35,9 @@ rm /root/.bin/start.sh
# Generate SSH key of the serveur
ssh-keygen -t rsa -b 4096 -C "c2a.toulouse@gmail.com"
# Install let's encrypt
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
# Install certbot
apt-get install -y certbot python-certbot-nginx
sudo htpasswd -c /etc/nginx/.htpasswd c2a
# Install node and NPM
apt-get update