2024-04-03 16:32:53 +02:00
|
|
|
package config
|
|
|
|
|
2024-04-03 16:31:34 +02:00
|
|
|
type (
|
2024-04-03 04:17:05 +02:00
|
|
|
APIService httpService
|
2024-04-03 16:31:34 +02:00
|
|
|
DoHService httpService
|
|
|
|
MetricsService httpService
|
|
|
|
)
|
|
|
|
|
|
|
|
// httpService can be used by any service that uses HTTP(S).
|
|
|
|
type httpService struct {
|
|
|
|
Addrs httpAddrs `yaml:"addrs"`
|
2024-04-03 16:32:53 +02:00
|
|
|
}
|
|
|
|
|
2024-04-03 16:31:34 +02:00
|
|
|
type httpAddrs struct {
|
2024-04-03 16:32:53 +02:00
|
|
|
HTTPAddrs `yaml:",inline"`
|
|
|
|
HTTPSAddrs `yaml:",inline"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type HTTPAddrs struct {
|
|
|
|
HTTP ListenConfig `yaml:"http"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type HTTPSAddrs struct {
|
|
|
|
HTTPS ListenConfig `yaml:"https"`
|
|
|
|
}
|