Skip to content

Commit

Permalink
add webhook.site
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rm4nd committed Jan 16, 2024
1 parent 797c6b1 commit cdef24f
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ A [wiki](https://en.wikipedia.org/wiki/Wiki) is a publication collaboratively ed
A request bin service allows one to collect and inspect HTTP requests. It may be used to create mock API endpoints or troubleshoot HTTP requests. Also used by security professionals to verify security vulnerabilities like Server Side Request Forgery (SSRF) and others.

- [RequestBin](examples/requestbin) - RequestBin gives you a unique URL that collects HTTP requests for debugging and development purposes.
- [Webhook.site](examples/webhook.site) - Easily test HTTP webhooks with this handy tool that displays requests instantly.
- [Request-Baskets](https://github.com/darklynx/request-baskets) - HTTP requests collector to test webhooks, notifications, REST clients and more.
- [Mockbin](https://github.com/Kong/mockbin) - Mock, Test & Track HTTP Requests and Response for Microservices.

Expand Down
3 changes: 3 additions & 0 deletions examples/webhook.site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# References

- https://github.com/webhooksite/webhook.site
63 changes: 63 additions & 0 deletions examples/webhook.site/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: '3'

services:
webhook:
image: webhooksite/webhook.site
container_name: webhook
restart: unless-stopped
command: php artisan queue:work --daemon --tries=3 --timeout=10
expose:
- 80
environment:
- APP_ENV=dev
- APP_DEBUG=true
- APP_URL=http://localhost:8084
- APP_LOG=errorlog
- DB_CONNECTION=sqlite
- REDIS_HOST=redis
- BROADCAST_DRIVER=redis
- CACHE_DRIVER=redis
- QUEUE_DRIVER=redis
- ECHO_HOST_MODE=path
depends_on:
- redis
#labels:
# - traefik.enable=true
# - traefik.docker.network=dev
# - traefik.http.routers.webhook.rule=Host(`hook.example.com`)
# - traefik.http.services.webhook.loadbalancer.server.port=80
# # Optional part for traefik middlewares
# - traefik.http.routers.webhook.middlewares=local-ipwhitelist@file,authelia@docker
#networks:
# - dev

redis:
image: redis:alpine
container_name: webhook-redis
restart: unless-stopped
#volumes:
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/requestbin/redis:/data
#networks:
# - dev

laravel-echo-server:
image: webhooksite/laravel-echo-server
container_name: webhook-echo-server
restart: unless-stopped
environment:
- LARAVEL_ECHO_SERVER_AUTH_HOST=http://webhook
- LARAVEL_ECHO_SERVER_HOST=0.0.0.0
- LARAVEL_ECHO_SERVER_PORT=6001
- ECHO_REDIS_PORT=6379
- ECHO_REDIS_HOSTNAME=redis
- ECHO_PROTOCOL=http
- ECHO_ALLOW_CORS=true
- ECHO_ALLOW_ORIGIN=*
- ECHO_ALLOW_METHODS=*
- ECHO_ALLOW_HEADERS=*
#networks:
# - dev

#networks:
# dev:
# external: true

0 comments on commit cdef24f

Please sign in to comment.