A RequestBin like application written with FastAPI.
1.5K
A Requestbin like application written in Python and using FastAPI. Capture webhook traffic from your applications and query the data received by Traffcap to ensure that it is correct.
Access the web UI at :9669
The following environment variables are available:
| Variable Name | Description |
|---|---|
| TRAFFCAP_REQUESTS_PREFIX | This is the prefix for the inbound requests |
| TRAFFCAP_DB_USER | Used for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite |
| TRAFFCAP_DB_PASSWORD | Used for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite |
| TRAFFCAP_DB_HOST | Used for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite |
| TRAFFCAP_DB_NAME | Name of the database or filename for sqlite |
| TRAFFCAP_DB_DRIVER | Can be sqlite, mssql, mysql |
| TRAFFCAP_SERVER_URL | Servers URL, defaults to localhost:9669 |
This can be run with
docker run -p 9669:9669 centurix/traffcap
This will immediately start recording all calls to the /r/<random endpoint code
---
version: "2.1"
services:
node:
image: centurix/traffcap:latest
container_name: traffcap
ports:
- 9669:9669
restart: unless-stopped
You can test the operation by making an HTTP request to http://localhost:9669/r/testpoint
Then visiting the web UI will show the request.
Documentation for the applications API is built into the web UI.
Content type
Image
Digest
sha256:a2a32462b…
Size
84.8 MB
Last updated
over 1 year ago
docker pull centurix/traffcap