sentry-self-hosted
sentry-self-hosted copied to clipboard
Does it make sense to uninstall letsencrypt certbot?
LetsEntrypt certificate expire after a short while, does it make sense to remove the certbot or maybe it's a better idea to keep it and set up a cron job to run every now and then to renew the certificate?
Yes, I'd set up a cron job to renew the certificate. Say, once a month. I think you can use the following script:
git clone https://github.com/letsencrypt/letsencrypt
sudo service nginx stop || true
letsencrypt/letsencrypt-auto --standalone --non-interactive --email [email protected] --agree-tos auth -d YOUR_SENTRY_DOMAIN
sudo service nginx start || true
rm -rf letsencrypt
Thanks @mherrmann!
Happy it helps others :-)
Could the script set up this cron job so it's all automatic?
Sure @jeff-h. If you figure it out, please submit a PR. (I don't have time to look at this.)