'nginx/nginx/README.md' updaten

This commit is contained in:
Mathijs Lermer 2020-10-28 15:45:26 +01:00
parent 85943306e9
commit 98b1e67613

View file

@ -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```