Remove old ACME challenge

This commit is contained in:
Alexandre Iooss 2019-02-06 21:32:14 +01:00
parent c9f10b01df
commit 234c3556c6

View file

@ -5,12 +5,6 @@ server {
location / {
return 302 https://$host$request_uri;
}
# On redirige tout ce qui concerne le challenge letsencrypt vers le meme dossier
# pour pouvoir utiliser le plugin webroot de letsencrypt
location /.well-known/acme-challenge {
alias /usr/share/nginx/html/.well-known/acme-challenge;
}
}
server {
@ -22,9 +16,9 @@ server {
error_log /var/log/nginx/{{ item.name }}.error.log;
# Use LetsEncrypt SSL
ssl_certificate /etc/letsencrypt/live/auro.re/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/auro.re/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/auro.re/chain.pem;
ssl_certificate /etc/letsencrypt/live/auro.re-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/auro.re-0001/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/auro.re-0001/chain.pem;
location / {
proxy_redirect off;
@ -36,11 +30,5 @@ server {
# "A man is not dead while his name is still spoken." -- Going Postal
add_header X-Clacks-Overhead "GNU Terry Pratchett";
}
# On redirige tout ce qui concerne le challenge letsencrypt vers le meme dossier
# pour pouvoir utiliser le plugin webroot de letsencrypt
location /.well-known/acme-challenge {
alias /usr/share/nginx/html/.well-known/acme-challenge;
}
}