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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user