bouncer/internal/config/http.go

16 lines
355 B
Go
Raw Permalink Normal View History

2023-04-24 20:52:12 +02:00
package config
type HTTPConfig struct {
2023-07-06 16:16:11 +02:00
Host InterpolatedString `yaml:"host"`
Port InterpolatedInt `yaml:"port"`
UseRealIP InterpolatedBool `yaml:"useRealIP"`
2023-04-24 20:52:12 +02:00
}
func NewHTTPConfig(host string, port int) HTTPConfig {
return HTTPConfig{
2023-07-06 16:16:11 +02:00
Host: InterpolatedString(host),
Port: InterpolatedInt(port),
UseRealIP: true,
2023-04-24 20:52:12 +02:00
}
}