Fix docker's letsencrypt renewal command

This commit is contained in:
Alexandre Provencio 2016-12-14 08:48:46 -02:00
parent 37a359bd41
commit 969f7b29f9

View File

@ -90,7 +90,7 @@ If you would like to set up autorenewal of your certificates, the following comm
#!/bin/bash #!/bin/bash
cd <project directory> cd <project directory>
docker-compose run --rm --name certbot certbot bash -c "sleep 6 && certbot certonly --standalone -d {{ cookiecutter.domain_name }} --text --agree-tos --email {{ cookiecutter.email }} --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --keep-until-expiring --standalone-supported-challenges http-01" docker-compose run --rm --name certbot certbot bash -c "sleep 6 && certbot certonly --standalone -d {{ cookiecutter.domain_name }} --text --agree-tos --email {{ cookiecutter.email }} --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --keep-until-expiring --standalone-supported-challenges http-01"
docker exec pearl_nginx_1 nginx -s reload docker exec {{ cookiecutter.project_name }}_nginx_1 nginx -s reload
And then set a cronjob by running `crontab -e` and placing in it (period can be adjusted as desired):: And then set a cronjob by running `crontab -e` and placing in it (period can be adjusted as desired)::