You can choose to run Webhook.site either via Docker, or install it on a Web server with PHP7 support.

Optional Features

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;
    }

Methods

Web Server

Requirements

  • PHP 7
  • Redis
  • Composer
  • Web server – e.g. nginx, apache2

DigitalOcean has a guide on how to configure nginx.

Installation Guide

  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.

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.

Installation Guide

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

Kubernetes

A set of Kubernetes configuration files can be found in the kubernetes subfolder.

Installation Guide

Configure the resources, and apply with kubectl apply -f ./.