Skip to content

Webhooks

a-a-hofmann edited this page Sep 3, 2020 · 2 revisions

Webhooks

Testing Webhooks locally

Install ngrok: https://ngrok.com/download

Run it with:

ngrok http -host-header=rewrite https://<server url> 

E.g.
ngrok http -host-header=rewrite https://192.168.205.10
Or for local development

ngrok http -host-header=rewrite http://127.0.0.1:8080

ngrok will print out the url which will forward all http requests:

Screenshot 2020-08-26 at 12 44 39

Set up a webhook using the mentioned url, e.g.: https://d2d48f20168f.ngrok.io/api/webhooks/courses/update/github