My Website Has Almost Nothing Left to Patch [YouTube Release]

Additional Resources:

I replaced WordPress with Hugo, Caddy & CrowdSec, and my website has almost nothing left to patch. Here is how a static site generator works, why I picked Caddy as the web server, and how little CrowdSec has to do now.

Hugo builds plain HTML from Markdown files, so there is no PHP, no database, and no plugins to keep updated. The server is Debian 13 on Linode with unattended upgrades, and SSH is only open to my IP.

My GitHub for Streaming Security


Connect With Us

Support the Channel & Swag

:money_bag: Patreon: https://www.patreon.com/lawrencesystems
►:t_shirt: Lawrence Systems Shirts: Lawrence Systems

Affiliates & Referral Links

:shopping_cart: Amazon Affiliate Store: Lawrence Systems's Amazon Page
:shopping_cart: HostiFi UniFi Cloud Hosting: HostiFi - Fast and Reliable UniFi in the Cloud
:shopping_cart: UniFi Affiliate Link: Ubiquiti Store United States
:shopping_cart: TechSupplyDirect (Code LTSERVICES for 10% off): Enterprise IT Hardware | Refurbished Servers, Workstations & Storage | Tech Supply Direct
:shopping_cart: Private Internet Access VPN: https://www.privateinternetaccess.com/pages/buy-vpn/LRNSYS

Chapters
0:00 Why I am moving off WordPress
1:18 Tour of the new sites
4:04 Why Hugo instead of static HTML
4:43 How Hugo works vs WordPress
6:14 Why static files are safer
6:40 Caddy: the web server
8:05 Debian 13 and server resources
9:14 CrowdSec
10:31 Why I left WordPress
11:21 WordPress or static: your take

1 Like

Hey Tom,

Thanks once again for this clear and informative video.

If a website doesn’t need a CMS, a static framework like Hugo will do the job perfectly and will actually be much simpler to maintain and secure.

I’ve literally just done exactly the same thing with a small website for a business, an hour before your video was published :slight_smile:

Hugo is really well documented and easy to use, even for an average user like me.

As the site is very small, I’m using a Cloudflare worker with a free account for hosting; this takes all the hassle out of managing infrastructure and also allows SSL certificates to be generated automatically.

With a bit of help from Claude Code, I’ve put together a little script in a folder accessible to the client, which allows them to edit the Markdown files, have Hugo generate the pages, and automatically publish the result to Cloudflare.

1 Like

I didn’t notice in the video. How is your contact forms handled when using hugo if it’s all static. Are the forms processed elsewhere?

Looks like the static site is routing /api/contact so likely a local endpoint on his system that has a email service.

Edit: In /privacy-policy page there’s a “Contact Form” subsection mentioning the use of it being a Google Workspace mailbox. From my guess it’s a white list IP address on the Google side to send the email (I do the same for a client of mine). It’s pretty nifty.

Yup, just a simple local SMTP that is allowed to email my Google workspace account along with some rate limiting,

1 Like

I was thinking the same thing. Looks like Tom does use some javascript to accomplish this. He must have gone through a 3rd party to handle these requests.

contact forms with static sites usually hit a tiny backend or a serverless function that just forwards to smtp or an api you control. I use a tiny go binary behind caddy that reads json and pipes to smtp with rate limit. works fine but adds a small attack surface

I don’t have it connected directly to my Google Account, I am using duocircle.com as a mail relay to send it over to my email. This limits threat surface in case the server itself gets compromised.