Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 2.52 KB

readme.md

File metadata and controls

63 lines (42 loc) · 2.52 KB

Webhook.site

Docker Cloud Build Status GitHub last commit

With Webhook.site, you can easily test HTTP webhooks and other types of HTTP requests.

Upon visiting the app, you get a random URL to send your requests and webhooks to, and they're all logged in the app – instantly. Check it out at https://webhook.site.

Built by Simon Fredsted (@fredsted).

Acknowledgements

The app was built with Laravel for the API and Angular.js for the frontend SPA.

Donate

Requirements

  • PHP 7
  • Redis
  • Composer
  • Web server

Version 1.1 switched to using Redis for storage. If you want to use SQLite, you can use version 1.0.

Installation

Docker

The provided Docker Compose file sets up a complete environment that runs the Webhook.site image and all dependencies (Redis, Laravel Echo Server, etc.). Note that if running this in production, you should probably run a Redis server that persists data to disk. The Docker image is also not tuned for large amount of traffic.

  1. Run docker-compose up
  2. The app is available on http://127.0.0.1:8084.

Web Server

  1. Run the following commands:
    1. composer install
    2. cp .env.example .env - adjust settings as needed
    3. php artisan key:generate
  2. Setup virtual host pointing to the /public folder. DigitalOcean has a guide on how to configure nginx.

Push functionality

You can use laravel-echo-server or Pusher to enable realtime updates. Take a look at the .env.example on how to configure it.

For laravel-echo-server, the app expects socket.io to be available at the /socket.io path. This can be done with nginx like so:

    location /socket.io {
        proxy_pass http://127.0.0.1:6001;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }