From 3b60c16016c098412a964d41ea94d97759d48481 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 30 May 2023 00:35:23 -0600 Subject: update website entry, add temp dirs --- config.yaml | 3 +- db/db_blog.psv | 2 +- live/blog/a/website_with_nginx.html | 9 +- live/blog/rss.xml | 7 +- live/blog/sitemap.xml | 2 +- live/luevano.xyz/index.html | 2 +- src/blog/a/website_with_nginx.md | 8 +- src/blog/temp/flappybird_godot_devlog_2.md | 680 +++++++++++++++++++++++++++++ src/blog/temp/temp_rant.md | 25 ++ 9 files changed, 720 insertions(+), 18 deletions(-) create mode 100644 src/blog/temp/flappybird_godot_devlog_2.md create mode 100644 src/blog/temp/temp_rant.md diff --git a/config.yaml b/config.yaml index 7c1fa4e..6b50522 100644 --- a/config.yaml +++ b/config.yaml @@ -35,6 +35,7 @@ exts: pymdvar: variables: SURL: "https://static.luevano.xyz" + PYSSG_URL: "https://github.com/luevano/pyssg" enable_env: False ... --- @@ -68,7 +69,7 @@ dirs: index: "blog/index.html" rss: True sitemap: True - exclude_dirs: [] + exclude_dirs: ["temp"] exts: pymdvar: variables: diff --git a/db/db_blog.psv b/db/db_blog.psv index 7b4be36..0388330 100644 --- a/db/db_blog.psv +++ b/db/db_blog.psv @@ -1,4 +1,4 @@ -a/website_with_nginx.md|1616122695.085315|1683275655.7171004|85936248e56afd9f53ed76e51399a33a|code,english,server,tools,tutorial +a/website_with_nginx.md|1616122695.085315|1685232308.4036176|da8bcc1c7f5693dbd023f212bc11cc85|code,english,server,tools,tutorial a/git_server_with_cgit.md|1616353229.8983006|1683275738.97709|64f9cfb1385b550b8bf614805594de9a|code,english,server,tools,tutorial a/el_blog_ya_tiene_timestamps.md|1615862784.9032707|1683224100.6342998|935866045bf6c35cbb2a4c2fbc2f0eb1|short,spanish,tools,update a/first_blog_post.md|1614431313.2090824|1683224048.8343117|d613be2d506a0f7ce03f8fa54f772717|english,short,tools,update 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
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:

-
crontab -e
+

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:

+
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.

-

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.