From 98b1e6761310f8914fb795e85843b3fbb0e3294b Mon Sep 17 00:00:00 2001 From: Mathijs Lermer Date: Wed, 28 Oct 2020 15:45:26 +0100 Subject: [PATCH] 'nginx/nginx/README.md' updaten --- nginx/nginx/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nginx/nginx/README.md b/nginx/nginx/README.md index d52a150..563a50f 100644 --- a/nginx/nginx/README.md +++ b/nginx/nginx/README.md @@ -15,7 +15,8 @@ # zonder downtime nginx reloaden: ```docker exec -it nginx s6-svc -h /var/run/s6/services/nginx``` -# Cert aanmaken +# Certificaten: +### aanmaken ``` sudo docker run -it --rm \ -v /docker/nginx/letsencrypt:/etc/letsencrypt \ @@ -32,7 +33,7 @@ certonly --webroot \ -d example.example.com ``` -## Cert vernieuwen: +### vernieuwen: ``` docker run --rm -it --name certbot \ -v "/docker/nginx/letsencrypt:/etc/letsencrypt" \ @@ -43,5 +44,5 @@ certbot/certbot renew \ --webroot -w /data/letsencrypt \ --quiet && docker exec -it nginx s6-svc -h /var/run/s6/services/nginx ``` -# cronjob: (dagelijks auto vernieuwen) +### cronjob: (dagelijks auto vernieuwen) ```sudo docker run --rm --name certbot -v /docker/nginx/letsencrypt:/etc/letsencrypt -v /docker/nginx/letsencrypt_var:/var/lib/letsencrypt -v /docker/nginx/letsencrypt/letsencrypt-site:/data/letsencrypt -v /docker/nginx/letsencrypt/log:/var/log/letsencrypt certbot/certbot renew --webroot -w /data/letsencrypt --quiet && docker restart nginx```