Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.54 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.54 KB

Webhook Tester

Simple, Laravel-based webhook tester for inspecting webhook calls from third-party services.

Installation

Download the latest docker-compose.yml file

wget -O docker-compose.yml https://raw.githubusercontent.com/rpungello/webhook-tester/main/docker-compose-prod.yml

Download sample .env file.

wget -O .env https://raw.githubusercontent.com/rpungello/webhook-tester/main/.env.example

Configure the .env file to suit your needs. In particular, for WebSockets to work properly, the following needs to be set properly:

  • VITE_REVERB_HOST: public-facing hostname of the app (e.g. webhook-tester.example.com)
  • VITE_REVERB_PORT: public-facing port of the app (usually 80 or 443)
  • VITE_REVERB_SCHEME: http or https This will enable the use of WebSockets to facilitate realtime display of new webhook requests.

Remove any unnecessary services from the downloaded docker-compose file (e.g. mysql, redis, etc.) if you don't need them.

Start Docker stack.

docker compose up -d

Generate an app key. Note that if your Docker container name is anything other than webhook-tester-app-1, you'll need to download the script and edit accordingly.

curl https://raw.githubusercontent.com/rpungello/webhook-tester/main/docker/key.sh | sh

Restart the Docker stack to apply the updated .env file

docker compose down
docker compose up -d

Run migrations (replace webhook-tester-app-1 with the name of the app container)

docker exec webhook-tester-app-1 php artisan migrate --force