Uses smee to forward webhooks to services not exposed to the open internet.
Tested with Node 8.x.
npm install && node index.js
docker run -v /tmp/hooks.yml:/etc/webhooks/config.yaml:ro evenh/webhook-router
The server looks for /etc/webhooks/config.yaml
by default. This can be overridden: WEBHOOK_CONFIG=/tmp/hooks.yaml
Format:
- name: Foo
sources:
- https://hooks.example.com/foo
targets:
- http://jenkins.internal.corp/github-webhook/
- name: Bar
sources:
- https://hooks.example.com/bar
- https://hooks.example.com/baz
targets:
- http://my-server.internal.corp/webhooks