A very lightweight web service that provides a few basic endpoints.
API is available at https://api.blupig.net/echo
Available endpoints:
GET /cache: cacheable content with increased latency (help debugging caching layer)GET /cpu: performs CPU-intensive operation on server-side (requires API token)GET /exit: causes server process to exit (requires API token)GET /headers: returns request headers in JSONGET /health: returns application health infoGET /ip: returns client IP (usesX-Forwarded-Forif present, otherwise returns client IP)
Pre-built binaries are available as Docker images at blupig/echo.
The server can be configured with environment variables:
PORT: the port server listens on (default:8000)API_TOKEN: API token for/cpuand/exitendpoints, if not set or set to empty string, all endpoints require API token are disabled.