Send static HTTP response fast and log (optional) visits to ClickHouse
412
Send static HTTP response fast and log visits to ClickHouse
/ URI with static string/loadEnvironment variables:
PORT - HTTP listen port (8080 by default)RESPONSE - string which response to GET /BUFFER - buffer size (in requests) between HTTP server and DB writer (100,000 bн default)DISABLE_CH - set true to disable writing to ClickHouseCH_HOST - host (127.0.0.1 by default)CH_PORT - port (9000 by default)CH_DEBUG - debug enabled true/false (false by default)CH_USER - user (empty=default by default)CH_PASSWORD - password (nothing by default)CH_DB - database (empty=default by default)docker run -d --restart always \
-e RESPONSE="Hello!" \
-e CH_HOST=10.0.0.1 \
-e CH_PASSWORD="password" \
-p 8080:8080 delfer/go-static-responser
Open http://10.0.0.1/ in you browser or by curl to make new visit,
open http://10.0.0.1/load to get current buffer usage
MIT
Content type
Image
Digest
Size
4.2 MB
Last updated
over 7 years ago
docker pull delfer/go-static-responser