summaryrefslogtreecommitdiff
path: root/src/blog/a
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-05-30 00:35:23 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-05-30 00:35:23 -0600
commit3b60c16016c098412a964d41ea94d97759d48481 (patch)
tree5d040b47f73574c4f1b73f0742970e500302c58a /src/blog/a
parent9ffc1601b83c808188fb74b3337154ca117889eb (diff)
update website entry, add temp dirs
Diffstat (limited to 'src/blog/a')
-rw-r--r--src/blog/a/website_with_nginx.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/blog/a/website_with_nginx.md b/src/blog/a/website_with_nginx.md
index 11d4406..93b9c48 100644
--- a/src/blog/a/website_with_nginx.md
+++ b/src/blog/a/website_with_nginx.md
@@ -160,12 +160,10 @@ certbot --nginx
It will ask you for some information, for you to accept some agreements and the names to activate HTTPS for. Also, you will want to "say yes" to the redirection from HTTP to HTTPS. And that's it, you can now go to your website and see that you have HTTPS active.
-Now, the certificate given by `certbot` expires every 3 months or something like that, so you want to renew this certificate every once in a while. Using `cron`, you can do this by running:
+Now, the certificate given by `certbot` expires every 3 months or something like that, so you want to renew this certificate every once in a while. I did this before using `cron` or manually creating a `systemd` timer and service, but now it's just a matter of enabling the `certbot-renew.timer`:
```sh
-crontab -e
+systemctl start certbot-renew.timer
```
-And a file will be opened where you need to add a new rule for Certbot, just append the line: `1 1 1 * * certbot renew --quiet --agree-tos --deploy-hook "systemctl reload nginx.service"` (renew on the first day of every month) and you're good. Alternatively use `systemd` timers as stated in the [Arch Linux Wiki](https://wiki.archlinux.org/title/Certbot#Automatic_renewal).
-
-That's it, you now have a website with SSL certificate.
+The `deploy-hook` is not needed anymore, only for plugins. For more, visit the [Arch Linux Wiki](https://wiki.archlinux.org/title/Certbot#Automatic_renewal).