summaryrefslogtreecommitdiff
path: root/live/blog
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 /live/blog
parent9ffc1601b83c808188fb74b3337154ca117889eb (diff)
update website entry, add temp dirs
Diffstat (limited to 'live/blog')
-rw-r--r--live/blog/a/website_with_nginx.html9
-rw-r--r--live/blog/rss.xml7
-rw-r--r--live/blog/sitemap.xml2
3 files changed, 8 insertions, 10 deletions
diff --git a/live/blog/a/website_with_nginx.html b/live/blog/a/website_with_nginx.html
index 2d18185..36a09ca 100644
--- a/live/blog/a/website_with_nginx.html
+++ b/live/blog/a/website_with_nginx.html
@@ -210,11 +210,10 @@ systemctl restart nginx
<pre><code class="language-sh">certbot --nginx
</code></pre>
<p>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 &ldquo;say yes&rdquo; to the redirection from HTTP to HTTPS. And that&rsquo;s it, you can now go to your website and see that you have HTTPS active.</p>
-<p>Now, the certificate given by <code>certbot</code> expires every 3 months or something like that, so you want to renew this certificate every once in a while. Using <code>cron</code>, you can do this by running:</p>
-<pre><code class="language-sh">crontab -e
+<p>Now, the certificate given by <code>certbot</code> 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 <code>cron</code> or manually creating a <code>systemd</code> timer and service, but now it&rsquo;s just a matter of enabling the <code>certbot-renew.timer</code>:</p>
+<pre><code class="language-sh">systemctl start certbot-renew.timer
</code></pre>
-<p>And a file will be opened where you need to add a new rule for Certbot, just append the line: <code>1 1 1 * * certbot renew --quiet --agree-tos --deploy-hook "systemctl reload nginx.service"</code> (renew on the first day of every month) and you&rsquo;re good. Alternatively use <code>systemd</code> timers as stated in the <a href="https://wiki.archlinux.org/title/Certbot#Automatic_renewal">Arch Linux Wiki</a>.</p>
-<p>That&rsquo;s it, you now have a website with SSL certificate.</p>
+<p>The <code>deploy-hook</code> is not needed anymore, only for plugins. For more, visit the <a href="https://wiki.archlinux.org/title/Certbot#Automatic_renewal">Arch Linux Wiki</a>.</p>
<div class="page-nav">
<span class="next">
@@ -244,7 +243,7 @@ systemctl restart nginx
<div class="article-info">
<p>By David Luévano</p>
<p>Created: Fri, Mar 19, 2021 @ 02:58 UTC</p>
- <p>Modified: Fri, May 05, 2023 @ 08:34 UTC</p>
+ <p>Modified: Sun, May 28, 2023 @ 00:05 UTC</p>
<div class="article-tags">
<p>Tags:
<a href="https://blog.luevano.xyz/tag/@code.html">code</a>, <a href="https://blog.luevano.xyz/tag/@english.html">english</a>, <a href="https://blog.luevano.xyz/tag/@server.html">server</a>, <a href="https://blog.luevano.xyz/tag/@tools.html">tools</a>, <a href="https://blog.luevano.xyz/tag/@tutorial.html">tutorial</a> </p>
diff --git a/live/blog/rss.xml b/live/blog/rss.xml
index 990cfd8..0dcff76 100644
--- a/live/blog/rss.xml
+++ b/live/blog/rss.xml
@@ -3119,11 +3119,10 @@ systemctl restart nginx
<pre><code class="language-sh">certbot --nginx
</code></pre>
<p>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 &ldquo;say yes&rdquo; to the redirection from HTTP to HTTPS. And that&rsquo;s it, you can now go to your website and see that you have HTTPS active.</p>
-<p>Now, the certificate given by <code>certbot</code> expires every 3 months or something like that, so you want to renew this certificate every once in a while. Using <code>cron</code>, you can do this by running:</p>
-<pre><code class="language-sh">crontab -e
+<p>Now, the certificate given by <code>certbot</code> 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 <code>cron</code> or manually creating a <code>systemd</code> timer and service, but now it&rsquo;s just a matter of enabling the <code>certbot-renew.timer</code>:</p>
+<pre><code class="language-sh">systemctl start certbot-renew.timer
</code></pre>
-<p>And a file will be opened where you need to add a new rule for Certbot, just append the line: <code>1 1 1 * * certbot renew --quiet --agree-tos --deploy-hook "systemctl reload nginx.service"</code> (renew on the first day of every month) and you&rsquo;re good. Alternatively use <code>systemd</code> timers as stated in the <a href="https://wiki.archlinux.org/title/Certbot#Automatic_renewal">Arch Linux Wiki</a>.</p>
-<p>That&rsquo;s it, you now have a website with SSL certificate.</p>]]></content:encoded>
+<p>The <code>deploy-hook</code> is not needed anymore, only for plugins. For more, visit the <a href="https://wiki.archlinux.org/title/Certbot#Automatic_renewal">Arch Linux Wiki</a>.</p>]]></content:encoded>
</item>
<item>
<title>Así es raza, el blog ya tiene timestamps</title>
diff --git a/live/blog/sitemap.xml b/live/blog/sitemap.xml
index 836f5c0..8dc6877 100644
--- a/live/blog/sitemap.xml
+++ b/live/blog/sitemap.xml
@@ -161,7 +161,7 @@
</url>
<url>
<loc>https://blog.luevano.xyz/a/website_with_nginx.html</loc>
- <lastmod>2023-05-05</lastmod>
+ <lastmod>2023-05-28</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>