Thanks for the 2am nerd snipe :D
You can do this via git hooks and a script.
Specifically the prepare-commit-msg hook (.git/hooks/prepare-commit-msg). In your script, check for the GIT_REFLOG_ACTION env variable, and check if its value is "revert". If so, you are in a revert, and you can echo/printf out whatever you would like in your template.
Might be a bit more work to get to where you want, but hopefully that points you in the right direction?
I don't think there are any hard and fast rules for what is self hosting. Lots of people use cloudflare, which would fail both of your criteria as well.
At least with Plex/cloudflare/others, your overall control and privacy is better and more in your control than it would be with other non-self hosted alternatives.