Dead simple, not efficient, HTTP reverse proxy that logs requests and response to and from upstream.
1.0K
❯ docker run --rm -ti --network host -e PORT=8889 -e WEBSERVER_URL=http://localhost:5678 wregen/logging-proxy
2024/07/17 07:08:39 Starting proxy server on port 8889...
2024/07/17 07:08:39 Proxying requests to http://localhost:5678
2024/07/17 07:08:45 Request Body: {"query":"test test"}
2024/07/17 07:08:45 Response Body: hello world
-------------------------------------------------------------------------------------------------------------
❯ curl http://localhost:8889 -X POST -d '{"query":"test test"}'
hello world
Content type
Image
Digest
sha256:137a1de19…
Size
2.2 MB
Last updated
about 2 years ago
docker pull wregen/logging-proxy