mirror of
https://github.com/gomods/athens
synced 2026-02-03 08:40:31 +00:00
[debug] allow to expose activate via config (#1284)
This CL addresses issue #1177 introducing two new configuration params allowing to activate pprof. - `ATHENS_ENABLE_PPROF` - `ATHENS_PPROF_PORT` pprof won't be exposed by default.
This commit is contained in:
@@ -43,6 +43,14 @@ LogLevel = "debug"
|
||||
# Env override: ATHENS_CLOUD_RUNTIME
|
||||
CloudRuntime = "none"
|
||||
|
||||
# EnablePprof specifies if the pprof endpoints should be exposed.
|
||||
# Note that this option is not meant to be activated forever on a server
|
||||
# and should be desactivated once not needed.
|
||||
EnablePprof = false
|
||||
|
||||
# PprofPort specifies the port on which pprof will be exposed if activated.
|
||||
PprofPort = ":3001"
|
||||
|
||||
# The filename for the include exclude filter.
|
||||
# Env override: ATHENS_FILTER_FILE
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user