render logs into images

This commit is contained in:
seb
2026-07-11 05:41:17 +02:00
parent 9466d295a4
commit a46e2705a4
12 changed files with 1366 additions and 249 deletions

23
.env.example Normal file
View File

@@ -0,0 +1,23 @@
# ESC/POS print proxy configuration
# Host/port the proxy listens on for incoming print jobs
LISTEN_HOST=0.0.0.0
LISTEN_PORT=9100
# Target printer the raw bytes are forwarded to
TARGET_HOST=10.10.10.24
TARGET_PORT=9100
# Directory where job logs are written
LOG_DIR=./logs
# ESC/POS cut command prefix (hex, space-separated). Default GS V = 1d 56
# A job is delimited by this prefix followed by one mode byte.
CUT_PREFIX=1d 56
# Keep bytes arriving after a cut as the start of the next job (true/false)
KEEP_AFTER_CUT=true
# Forward received bytes to the target printer (true/false).
# Set to false to only receive + log jobs without sending them anywhere.
FORWARD=true