Add ability to run pprof on dedicated HTTP server (#4584)

This allows exposing the pprof/debug endpoints in a production
environment more easily, where it shouldn't be exposed publicly.
This commit is contained in:
Trey Hakanson
2026-06-10 21:23:39 -07:00
committed by GitHub
parent 675caa208f
commit 233a226438
3 changed files with 45 additions and 1 deletions
+5
View File
@@ -60,6 +60,7 @@ type Config struct {
// PrometheusPort is deprecated
PrometheusPort uint32 `yaml:"prometheus_port,omitempty"`
Prometheus PrometheusConfig `yaml:"prometheus,omitempty"`
DebugHandler DebugHandlerConfig `yaml:"debug_handler,omitempty"`
RTC RTCConfig `yaml:"rtc,omitempty"`
Redis redisLiveKit.RedisConfig `yaml:"redis,omitempty"`
Audio sfu.AudioConfig `yaml:"audio,omitempty"`
@@ -348,6 +349,10 @@ type PrometheusConfig struct {
Password string `yaml:"password,omitempty"`
}
type DebugHandlerConfig struct {
Port uint32 `yaml:"port,omitempty"`
}
type ForwardStatsConfig struct {
SummaryInterval time.Duration `yaml:"summary_interval,omitempty"`
ReportInterval time.Duration `yaml:"report_interval,omitempty"`