gproxy: load default config file for debug and listen statements

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-04 14:07:12 +02:00
parent 0440ad7c09
commit 42f9ba8efe
6 changed files with 53 additions and 22 deletions

View File

@ -1,22 +1,17 @@
package config
type Config struct {
Debug bool
Web WebConfig
Paths PathsConfig
Log LogConfig
Debug bool `yaml:"debug"`
Web WebConfig `yaml:"web"`
Paths PathsConfig `yaml:"paths"`
LogLevel string `yaml:"log_level"`
}
type WebConfig struct {
Listen string
ListenTLS string
Listen string `yaml:"listen"`
ListenTLS string `yaml:"listen_tls"`
}
type PathsConfig struct {
Media string
}
type LogConfig struct {
Level string
Format string
Media string `yaml:"media"`
}