How to reuse code in Caddyfiles?

I think this request would solve part of your issue, if the Endian problem were addressed…

@matt, any chance of this making it into caddy?