Skip to content

v0.4.1

Choose a tag to compare

@Anton-Horn Anton-Horn released this 03 Apr 19:29
· 584 commits to main since this release

Bug Fix

  • Fix webhook auto-redeployment: Webhook Caddy route was being appended after app routes, causing host-based app routes to intercept /_ocd/webhook/* requests before they reached the webhook receiver. The route is now prepended at position 0 so it's evaluated first.

Note for existing deployments

If you have an existing server with webhooks enabled, you'll need to reorder the route manually:

curl -sf -X DELETE http://localhost:2019/id/ocd-webhook-route
curl -sf -X POST -H 'Content-Type: application/json' \
  -d '{"@id":"ocd-webhook-route","match":[{"path":["/_ocd/webhook/*"]}],"handle":[{"handler":"rewrite","strip_path_prefix":"/_ocd/webhook"},{"handler":"reverse_proxy","upstreams":[{"dial":"localhost:9876"}]}],"terminal":true}' \
  http://localhost:2019/config/apps/http/servers/srv0/routes/0

Full Changelog: v0.4.0...v0.4.1