Register prometheus and pprof endpoints using https mux

This commit is contained in:
ionutboangiu
2024-08-09 20:24:43 +03:00
committed by Dan Christian Bogos
parent 594e8404dc
commit 435ba54743
3 changed files with 47 additions and 1 deletions

View File

@@ -253,6 +253,8 @@ func startRPC(server *cores.Server, internalRaterChan,
cfg.TLSCfg().ServerName,
cfg.HTTPCfg().HTTPJsonRPCURL,
cfg.HTTPCfg().HTTPWSURL,
cfg.HTTPCfg().PrometheusURL,
cfg.HTTPCfg().PprofPath,
cfg.HTTPCfg().HTTPUseBasicAuth,
cfg.HTTPCfg().HTTPAuthUsers,
shdChan,