Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

3scale-archive/webhook_multiplexer

Repository files navigation

Webhook Multiplexer

Take all requests and copy them to different URLs.

Can add custom headers or change the HTTP method.

Usage

Copy to one server

WEBHOOK_MULTIPLEXER_URLS="https://echo-api.3scale.net" rackup

Copy to several servers

WEBHOOK_MULTIPLEXER_URLS="https://echo-api.3scale.net;http://echo-api.3scale.net" rackup

Override method and headers

WEBHOOK_MULTIPLEXER_URLS="GET,https://echo-api.3scale.net,Authentication: Bearer somekey" rackup

Override method and headers and use several servers

WEBHOOK_MULTIPLEXER_URLS="GET,https://echo-api.3scale.net,Authentication: Bearer somekey;POST,https://echo-api.3scale.net" rackup

Heroku

 heroku config:set WEBHOOK_MULTIPLEXER_URLS="http://requestb.in/18igo571;PUT,http://requestb.in/18igo571"
 git push heroku master

About

Take any webhook and multiplex it to N locations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages