Cool! Thanks for publishing that.
I’d recommend making this a
caddy.Duration type, if possible, to be consistent with other timeframes in Caddy configuration:
Consider expanding on the godoc as that is what users will see when they look for documentation.
(Other than this, I haven’t given it any code review. Just a quick glance.)