A simple HTTP server that counts requests by IP address and path.
- Request counting by IP + path combination
- Cloudflare support (uses
cf-connecting-ipheader when present) - Configurable listen address via CLI
- Health check endpoint
| Endpoint | Description |
|---|---|
/healthz |
Health check, returns OK |
/*path |
Returns JSON with request count for the current IP + path |
{
"total": 5,
"ip": "192.168.1.1",
"path": "/api/users"
}cargo run -- --address 0.0.0.0:8080| Option | Short | Default | Description |
|---|---|---|---|
--address |
-a |
0.0.0.0:8080 |
Listen address |
docker pull ghcr.io/mipsel64/simple-http:latest
docker run -p 8080:8080 ghcr.io/mipsel64/simple-http:latestWith custom address:
docker run -p 3000:3000 ghcr.io/mipsel64/simple-http:latest --address 0.0.0.0:3000cargo build --release