2019-06-04 20:47:08 +02:00
|
|
|
# Database connection type (note: only "sqlite3" is supported at the moment)
|
2018-07-26 14:14:23 +02:00
|
|
|
db_type = "sqlite3"
|
2019-06-04 20:47:08 +02:00
|
|
|
# Database connection settings; see https://gorm.io/docs/connecting_to_the_database.html#Supported-Databases for details
|
2018-07-26 14:14:23 +02:00
|
|
|
db_connection = "/tmp/freifunkmanager.db"
|
2018-06-30 01:45:51 +02:00
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# Address and port where HTTP server shall listen
|
2017-05-06 14:37:24 +02:00
|
|
|
webserver_bind = ":8080"
|
2019-06-04 20:47:08 +02:00
|
|
|
# Root directory to serve via HTTP
|
2018-08-10 11:52:46 +02:00
|
|
|
webroot = "./webroot/"
|
2017-05-08 19:13:29 +02:00
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# Password required for making changes in the web interface
|
2018-06-30 16:20:54 +02:00
|
|
|
secret = "passw0rd"
|
2017-05-06 19:44:37 +02:00
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# How long should a node remain on the blacklist after it has not responded to an SSH connection
|
|
|
|
# (nodes are blacklisted if they have sent updated respondd data but are not reachable by SSH)
|
2018-08-10 17:17:00 +02:00
|
|
|
blacklist_for = "1w"
|
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# SSH key for logging in on nodes
|
2018-06-30 01:45:51 +02:00
|
|
|
ssh_key = "~/.ssh/id_rsa"
|
2019-06-04 20:47:08 +02:00
|
|
|
# Only IP addresses starting with this prefix are used for SSH connection
|
2018-08-10 13:46:18 +02:00
|
|
|
ssh_ipaddress_prefix = "fd2f:"
|
2019-06-04 20:47:08 +02:00
|
|
|
# Timeout for SSH connections
|
2018-07-24 15:07:11 +02:00
|
|
|
ssh_timeout = "1m"
|
2017-05-06 19:44:37 +02:00
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# If true, built-in Yanic instance will be used to request and collect respondd data from nodes
|
2018-07-17 23:11:47 +02:00
|
|
|
yanic_enable = true
|
2019-06-04 20:47:08 +02:00
|
|
|
# If set, Yanic startup will be delayed until the next full minute (or hour or whatever is configured here)
|
2018-07-17 23:11:47 +02:00
|
|
|
# yanic_synchronize = "1m"
|
2019-06-04 20:47:08 +02:00
|
|
|
# How often shall Yanic send respondd requests
|
2018-07-26 14:14:23 +02:00
|
|
|
yanic_collect_interval = "10s"
|
2018-07-17 23:11:47 +02:00
|
|
|
|
2019-06-04 20:47:08 +02:00
|
|
|
# More settings for the built-in Yanic instance
|
2017-05-06 19:44:37 +02:00
|
|
|
[yanic]
|
2019-06-04 20:47:08 +02:00
|
|
|
# Interface on which Yanic will send out respondd requests
|
2018-07-17 23:11:47 +02:00
|
|
|
ifname = "wlp4s0"
|
|
|
|
# e.g. to receive data of real yanic
|
|
|
|
# - please also disable `yanic_collect_interval`
|
|
|
|
# ifname = "lo"
|
2019-06-04 20:47:08 +02:00
|
|
|
|
|
|
|
# If set, Yanic will listen for response packets on this address only.
|
2018-07-17 23:11:47 +02:00
|
|
|
# ip_address = "::1"
|
2019-06-04 20:47:08 +02:00
|
|
|
|
|
|
|
# multicast address where respondd requests shall be sent. Default: ff05::2:1001
|
|
|
|
# multicast_address = "ff05::2:1001"
|
|
|
|
|
|
|
|
# If true, Yanic will not send own respondd request packets but will still listen for response packets
|
2018-08-10 11:55:10 +02:00
|
|
|
# send_no_request = true
|
2019-06-04 20:47:08 +02:00
|
|
|
|
|
|
|
# Local UDP port where Yanic will listen for response packets. Default: a dynamically selected port
|
|
|
|
# (note: request packets to nodes will always be sent to port 1001, regardless of this setting)
|
2018-07-26 14:14:23 +02:00
|
|
|
# port = 1001
|
2019-06-05 12:00:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
# nodes will pinged periodically
|
|
|
|
[pinger]
|
|
|
|
# if true, nodes will pinged periodically. default: false
|
|
|
|
enable = true
|
|
|
|
every = "1s"
|
|
|
|
timeout = "1s"
|
|
|
|
count = 1
|