I’m playing with caddy and trying to implement a custom module. I followed the docs and successfully setup an environment with xcaddy. I used this as a starting point: Extending Caddy — Caddy Documentation
I created a “Gizmo” module but used the ID: “http.handlers.gizmo”. I see it listed when I run
However, I get an error with the following Caddyfile:
localhost:2015 root * static gizmo file_server
When I do xcaddy adapt && xcaddy run at the command line I get the error:
adapt: Caddyfile:4: unrecognized directive: gizmo
Is there something more I need to do to make my gizmo available as a directive?