freifunkmanager/runtime/config.go

36 lines
1.1 KiB
Go
Raw Normal View History

2018-06-30 01:45:51 +02:00
package runtime
2017-05-06 14:37:24 +02:00
import (
"github.com/FreifunkBremen/yanic/lib/duration"
respondYanic "github.com/FreifunkBremen/yanic/respond"
)
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
2018-07-26 14:14:23 +02:00
DatabaseType string `toml:"db_type"`
DatabaseConnection string `toml:"db_connection"`
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-08-10 17:17:00 +02:00
BlacklistFor duration.Duration `toml:"blacklist_for"`
// auth secret
Secret string `toml:"secret"`
2017-05-06 14:37:24 +02:00
// SSH private key
2018-07-24 15:07:11 +02:00
SSHPrivateKey string `toml:"ssh_key"`
2018-08-10 13:46:18 +02:00
SSHIPAddressPrefix string `toml:"ssh_ipaddress_prefix"`
2018-07-24 15:07:11 +02:00
SSHTimeout duration.Duration `toml:"ssh_timeout"`
// yanic socket
YanicEnable bool `toml:"yanic_enable"`
YanicSynchronize duration.Duration `toml:"yanic_synchronize"`
YanicCollectInterval duration.Duration `toml:"yanic_collect_interval"`
Yanic respondYanic.InterfaceConfig `toml:"yanic"`
2017-05-06 14:37:24 +02:00
}