Skip to content

Commit

Permalink
add env variables for pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 committed Jul 14, 2024
1 parent afbc873 commit 13eccdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/alice/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13eccdd

Please sign in to comment.