From 13eccdd74bb95089d62ef8923bd4d560b95af341 Mon Sep 17 00:00:00 2001 From: Vadimka Komissarov Date: Sun, 14 Jul 2024 07:00:39 +0000 Subject: [PATCH] add env variables for pprof --- cmd/alice/main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/alice/main.go b/cmd/alice/main.go index 26885bf..4b5a433 100644 --- a/cmd/alice/main.go +++ b/cmd/alice/main.go @@ -126,12 +126,14 @@ func main() { DisableDefaultText: true, }, &cli.StringFlag{ - Name: "http-pprof-prefix", - Usage: "it should start with (but not end with) a slash. Example: '/test'", + Name: "http-pprof-prefix", + Usage: "it should start with (but not end with) a slash. Example: '/test'", + EnvVars: []string{"PPROF_PREFIX"}, }, &cli.StringFlag{ - Name: "http-pprof-secret", - Usage: "define static secret in x-pprof-secret header for avoiding unauthorized access", + Name: "http-pprof-secret", + Usage: "define static secret in x-pprof-secret header for avoiding unauthorized access", + EnvVars: []string{"PPROF_SECRET"}, }, // limiter settings