Posts

Blogging using Hugo

I recently started using Hugo, a fast and flexible static site generator, to publish the blog you're reading. I've captured some useful commands in this post to serve as a quick reference for myself and others getting started with Hugo. On Linux, enter the command below to install Hugo. ```bash sudo snap install hugo ``` Create the blog and initialize it as a git repository using the commands below. I use git to version control the changes to my blog and upload it to GitHub to back it up. Git …

Read more...

Automate TLS Certificate Renewal for nginx with Certbot

I run nginx in a Docker container on a cloud server to serve my web applications. Using Certbot, I issued a TLS certificate from Let's Encrypt for my domain. Since these certificates expire after 90 days, I set up automatic renewal with Certbot — here's how. - **nginx** - A high performance web server software. - **TLS** - Transport Layer Security is a cryptographic protocol for secure communication over the internet. - **TLS certificate** - Digital file that proves a website's identity to TLS. …

Read more...