2018-06-30 01:45:51 +02:00
|
|
|
package runtime
|
2017-05-06 14:37:24 +02:00
|
|
|
|
|
|
|
//config file of this daemon (for more the config_example.conf in git repository)
|
|
|
|
type Config struct {
|
2017-05-07 03:37:30 +02:00
|
|
|
// prevent crashes
|
|
|
|
StatePath string `toml:"state_path"`
|
2018-06-30 01:45:51 +02:00
|
|
|
|
2017-05-06 14:37:24 +02:00
|
|
|
// address on which the api and static content webserver runs
|
|
|
|
WebserverBind string `toml:"webserver_bind"`
|
|
|
|
// path to deliver static content
|
|
|
|
Webroot string `toml:"webroot"`
|
|
|
|
|
2018-06-30 16:20:54 +02:00
|
|
|
// auth secret
|
|
|
|
Secret string `toml:"secret"`
|
|
|
|
|
2017-05-06 14:37:24 +02:00
|
|
|
// SSH private key
|
|
|
|
SSHPrivateKey string `toml:"ssh_key"`
|
2017-05-06 19:44:37 +02:00
|
|
|
SSHInterface string `toml:"ssh_interface"`
|
|
|
|
|
|
|
|
// yanic socket
|
|
|
|
Yanic struct {
|
2018-06-30 01:45:51 +02:00
|
|
|
Enable bool `toml:"enable"`
|
|
|
|
InterfaceName string `toml:"ifname"`
|
|
|
|
Address string `toml:"address"`
|
|
|
|
Port int `toml:"port"`
|
2017-05-06 19:44:37 +02:00
|
|
|
} `toml:"yanic"`
|
2017-05-06 14:37:24 +02:00
|
|
|
}
|