1
0
Fork 0
forked from External/ergo

restapi: Initial commit

This commit is contained in:
Daniel Oaks 2016-11-06 11:05:29 +10:00
parent 4402e3e3aa
commit ee3853f845
6 changed files with 110 additions and 0 deletions

View file

@ -89,6 +89,11 @@ func (conf *OperConfig) PasswordBytes() []byte {
return bytes
}
type RestAPIConfig struct {
Enabled bool
Listen string
}
type ConnectionLimitsConfig struct {
CidrLenIPv4 int `yaml:"cidr-len-ipv4"`
CidrLenIPv6 int `yaml:"cidr-len-ipv6"`
@ -108,6 +113,7 @@ type Config struct {
Listen []string
Wslisten string `yaml:"ws-listen"`
TLSListeners map[string]*TLSListenConfig `yaml:"tls-listeners"`
RestAPI RestAPIConfig `yaml:"rest-api"`
CheckIdent bool `yaml:"check-ident"`
Log string
MOTD string