Added Go pprof handlers

Signed-off-by: Fred Heinecke <fred.heinecke@yahoo.com>
This commit is contained in:
Fred Heinecke
2025-05-02 04:46:25 +00:00
committed by Zoe Roux
parent 58cc688a02
commit 0493265b1d
3 changed files with 69 additions and 0 deletions
+6
View File
@@ -20,6 +20,12 @@ GOCODER_VAAPI_RENDERER="/dev/dri/renderD128"
# the qsv device path (only used with GOCODER_HWACCEL=qsv)
GOCODER_QSV_RENDERER="/dev/dri/renderD128"
# Performance tuning
# Set to true to enable pprof endpoints for profiling (/debug/pprof/). It is not recommended to expose
# this to users or the Internet, as this could be used to leak information via a side-channel attack.
# It is recommended to use a reverse proxy to restrict access to this endpoint, if enabled.
ENABLE_PPROF_ENDPOINT="false"
# Database things
# Setting this ignores the below connection variables and overrides any default values
# POSTGRES_URL=postgres://user:password@host:port/dbname?sslmode=disable