This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2018-02-07 19:32:11 +01:00
|
|
|
package server
|
2017-10-01 23:30:48 +02:00
|
|
|
|
2017-12-15 22:24:42 +01:00
|
|
|
import (
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
2017-10-01 23:30:48 +02:00
|
|
|
type Config struct {
|
2017-12-14 21:30:07 +01:00
|
|
|
TLSDir string `toml:"tlsdir"`
|
|
|
|
StatePath string `toml:"state_path"`
|
2017-12-15 22:24:42 +01:00
|
|
|
Logging struct {
|
|
|
|
Level log.Level `toml:"level"`
|
|
|
|
LevelClient log.Level `toml:"level_client"`
|
2017-12-17 17:50:51 +01:00
|
|
|
LevelServer log.Level `toml:"level_server"`
|
2017-12-15 22:24:42 +01:00
|
|
|
} `toml:"logging"`
|
|
|
|
Register struct {
|
|
|
|
Enable bool `toml:"enable"`
|
|
|
|
Domains []string `toml:"domains"`
|
|
|
|
} `toml:"register"`
|
|
|
|
Address struct {
|
|
|
|
Webserver []string `toml:"webserver"`
|
|
|
|
Client []string `toml:"client"`
|
|
|
|
Server []string `toml:"server"`
|
2017-12-14 21:30:07 +01:00
|
|
|
} `toml:"address"`
|
2017-10-01 23:30:48 +02:00
|
|
|
}
|