dat-ecosystem-archive / datproject-discussions

a repo for discussions and other non-code organizing stuff [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
65 stars 6 forks source link

ghost blog ssl renew script is not working #78

Open max-mapper opened 6 years ago

max-mapper commented 6 years ago

our blog's ssl cert went bad today. i went in the server and noticed this in the crontab:

15 3 * * * sudo service stop nginx && /usr/bin/certbot renew --quiet --renew-hook "/bin/systemctl reload nginx"

I tried running that and got errors. so I dont think that command is correct, or maybe I was doing something wrong. Also we're running the blog process as root which is probably bad.

mafintosh commented 6 years ago

sudo system nginc stop should fix it i think but using add-nginx-ssl would fix it as well without having to restart nginx on renew