Weeknotes 2025/3
Rate limits and Victorialogs
- posted:
-
I maintain my local hiking club’s website and due to a flurry of error emails I added global rate limiting. The reverse proxy is Caddy, which doesn’t have built-in rate limiting support but does support it via a plugin. Unfortunately, since it’s written in Go that means you need to compile the plugin into the server yourself. We’re running NixOS so this is both more and less annoying. I was going to explain in detail how, but I noticed that
caddy.withPlugins
has been merged and is set to land in NixOS 25.05 so this is soon going to be not very annoying at all. -
I setup Victorialogs for $job reasons. It’s a new-ish log database from the victoriametrics project. Seems nice so far!
-
I opened a Nixpkgs PR to add the Victorialogs grafana datasource, but am waiting to see if the plugin is signed and appears on the Grafana plugins site, which simplifies the derivation if it does.
-
And finally I opened another PR adding a NixOS module for Victorialogs. This will mean that you can enable and configure it in your NixOS with
services.victorialogs
.