It would be nice if this could be possible to be built directly as a Caddy module (since both are Go programs), this way it could be easily used within it (as request middleware), without complex/error-prone/inefficient request routing to an external process. (and thus more adoption, since it'd be very straightforward)
Ideally it'd allow reconfiguring options, both defaults on global level and per-path, this way people would have full freedom of choice on which paths to enable Anubis if not on all, and fine-tune some settings on some specific ones if needed.
As an inspiration for similar approach taken by another project, look at: https://github.com/darkweak/souin/tree/master/plugins/caddy
Souin cache is structured as a library, but offers plugins, including Caddy, to directly use it within the web servers (though in its case, the docs are a bit lacking), with the file structure that it has, it can easily be added to Caddy with
xcaddy build --with github.com/darkweak/souin/plugins/caddy
Other examples include: github.com/dunglas/mercure/caddy, github.com/dunglas/vulcain/caddy
It would be nice if this could be possible to be built directly as a Caddy module (since both are Go programs), this way it could be easily used within it (as request middleware), without complex/error-prone/inefficient request routing to an external process. (and thus more adoption, since it'd be very straightforward)
Ideally it'd allow reconfiguring options, both defaults on global level and per-path, this way people would have full freedom of choice on which paths to enable Anubis if not on all, and fine-tune some settings on some specific ones if needed.
As an inspiration for similar approach taken by another project, look at: https://github.com/darkweak/souin/tree/master/plugins/caddy
Souin cache is structured as a library, but offers plugins, including Caddy, to directly use it within the web servers (though in its case, the docs are a bit lacking), with the file structure that it has, it can easily be added to Caddy with
Other examples include:
github.com/dunglas/mercure/caddy,github.com/dunglas/vulcain/caddy