Commit 515f3cb1 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'doc/fix-cron-certbot-doc' into 'dev'

doc/server.md: certbot crontab

See merge request !975
parents 1fa2d519 ffb88774
Pipeline #259435 failed with stages
in 16 seconds
......@@ -189,7 +189,7 @@ You can achieve this with the following steps:
However beware, because you would not be able to start Nginx till the certificates are in place.
On certificate renewal (with `certbot`), you then need to restart the Nginx server. The following `cron` line can be used for certificate renewal (you may want to update the paths):
```
0 0 1 * * root (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(14400))' && certbot --webroot -w /opt/vidjil/certs renew && (cd /path/to/vidjil/docker/vidjil/docker; sudo -u vidjil docker-compose stop nginx && sudo -u vidjil docker-compose rm -f nginx && sudo -u vidjil docker-compose up -d nginx)) >> /var/log/certbot.log 2>&1
0 0 1 * * root (test -x /usr/bin/certbot && perl -e 'sleep int(rand(14400))' && certbot --webroot -w /opt/vidjil/certs renew && (cd /path/to/vidjil/docker/vidjil/docker; sudo -u vidjil docker-compose stop nginx && sudo -u vidjil docker-compose rm -f nginx && sudo -u vidjil docker-compose up -d nginx)) >> /var/log/certbot.log 2>&1
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment