Error: adapting config using caddyfile: parsing caddyfile tokens for 'handle': /etc/caddy/Caddyfile:27 - Error during parsing: parsing caddyfile tokens for 'reverse_proxy': /etc/caddy/Caddyfile:26 - Error during parsing: for now, URLs for proxy upstreams only support scheme, host, and port components
What do you want the webhook to do exactly? Just make an HTTP request?
Sounds like the most ideal solution would be a very simple custom Caddy module that makes a request and then carries the request through to the next handler.
file_server specifically. You can use rewrite with reverse proxy. But both file server and reverse proxy write the HTTP response, so only the first one will run.
You can’t proxy to a subpath, you have to use rewrite first.
What do you want the webhook to do exactly? Just make an HTTP request?
Yeah, pretty much. Just wanted to notify me that someone has completed some stage of CTF.
Sounds like the most ideal solution would be a very simple custom Caddy module that makes a request and then carries the request through to the next handler.
Huh, given my 0-knowledge of golang, I guess I’ll setup a syslog-ng to monitor the logs and trigger webhooks with it.
You’re not referencing the actual documentation of the reverse_proxy directive. What you’re referencing is only a getting started guide. The definitive guide of reverse_proxy shows how multiple arguments work.