diff --git a/docker/install-nginx.sh b/docker/install-nginx.sh index a701480..790a069 100755 --- a/docker/install-nginx.sh +++ b/docker/install-nginx.sh @@ -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 diff --git a/install.sh b/install.sh index 44ba61f..55d863a 100755 --- a/install.sh +++ b/install.sh @@ -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