gproxy: load default config file for debug and listen statements
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user