Sign inSign up

centurix/traffcap

By centurix

•Updated over 1 year ago

A RequestBin like application written with FastAPI.

Image
1

1.5K

centurix/traffcap repository overview

⁠Traffcap

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.

⁠Application Setup

Access the web UI at :9669

⁠Configuration

The following environment variables are available:

Variable NameDescription
TRAFFCAP_REQUESTS_PREFIXThis is the prefix for the inbound requests
TRAFFCAP_DB_USERUsed for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite
TRAFFCAP_DB_PASSWORDUsed for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite
TRAFFCAP_DB_HOSTUsed for MySQL, MSSQL, PostrgreSQL or Oracle database servers, blank for sqlite
TRAFFCAP_DB_NAMEName of the database or filename for sqlite
TRAFFCAP_DB_DRIVERCan be sqlite, mssql, mysql
TRAFFCAP_SERVER_URLServers URL, defaults to localhost:9669

⁠Running

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

⁠Docker Compose

---
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.

Tag summary

Content type

Image

Digest

sha256:a2a32462b…

Size

84.8 MB

Last updated

over 1 year ago

docker pull centurix/traffcap