add option to start http server for profiling

This commit is contained in:
crapStone 2024-04-28 22:46:55 +02:00 committed by crapStone
parent ca9433e0ea
commit 52bc59aee9
3 changed files with 34 additions and 4 deletions

View file

@ -139,6 +139,18 @@ var (
EnvVars: []string{"CONFIG_FILE"},
},
&cli.BoolFlag{
Name: "enable-profiling",
Usage: "enables the go http profiling endpoints",
EnvVars: []string{"ENABLE_PROFILING"},
},
&cli.StringFlag{
Name: "profiling-address",
Usage: "specify ip address and port the profiling server should listen on",
EnvVars: []string{"PROFILING_ADDRESS"},
Value: "localhost:9999",
},
// ############################
// ### ACME Client Settings ###
// ############################