2023-04-24 20:52:12 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
type ProxyServerConfig struct {
|
2023-06-30 18:26:27 +02:00
|
|
|
HTTP HTTPConfig `yaml:"http"`
|
|
|
|
Metrics MetricsConfig `yaml:"metrics"`
|
2023-04-24 20:52:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewDefaultProxyServerConfig() ProxyServerConfig {
|
|
|
|
return ProxyServerConfig{
|
2023-06-30 18:26:27 +02:00
|
|
|
HTTP: NewHTTPConfig("0.0.0.0", 8080),
|
|
|
|
Metrics: NewDefaultMetricsConfig(),
|
2023-04-24 20:52:12 +02:00
|
|
|
}
|
|
|
|
}
|