[DOC] config_example.toml output filtering

This commit is contained in:
Ruben Barkow 2017-11-04 02:23:47 +01:00 committed by Geno
parent 1acd8f4455
commit 573a5ee184
1 changed files with 57 additions and 29 deletions

View File

@ -1,3 +1,7 @@
# This is the config file for Yanic written in "Tom's Obvious, Minimal Language."
# syntax: https://github.com/toml-lang/toml
# (if you need somethink multiple times, checkout out the [[table]] section)
# Send respondd request to update information # Send respondd request to update information
[respondd] [respondd]
enable = true enable = true
@ -34,21 +38,55 @@ save_interval = "5s"
offline_after = "10m" offline_after = "10m"
## [[nodes.output.-]] ## [[nodes.output.example]]
# every output: # Each output format has its own config block and needs to be enabled by adding:
# needs to be enabled just adding: #enable = true
# enable = true #
# could filter the nodes by using a there filter entry (see output meshviewer) # For each output format there can be set different filters
# [nodes.output.-.filter] #[nodes.output.example.filter]
# could be used multiple times (suggested by the "[[...]]" instatt of "[...]") #
# it is useful for e.g. filter by different array and use multiple meshviewers # Set to false, if you want the json files to contain the owner information
#no_owner = true
#
# List of nodeids of nodes that should be filtered out, so they won't appear in output
#blacklist = ["00112233445566", "1337f0badead"]
#
# set has_location to true if you want to include only nodes that have geo-coordinates set
# (setting this to false has no sensible effect, unless you'd want to hide nodes that have coordinates)
#has_location = true
[[nodes.output.meshviewer]] #[nodes.output.example.filter.in_area]
# nodes outside this area are not shown on the map but are still listed as a node without coordinates
#latitude_min = 34.30
#latitude_max = 71.85
#longitude_min = -24.96
#longitude_max = 39.72
# definition for the new more compressed meshviewer.json
[[nodes.output.meshviewer-ffrgb]]
enable = true enable = true
path = "/var/www/html/meshviewer/data/meshviewer.json"
#[nodes.output.meshviewer-ffrgb.filter]
#no_owner = false
#blacklist = ["00112233445566", "1337f0badead"]
#has_location = true
#[nodes.output.meshviewer-ffrgb.filter.in_area]
#latitude_min = 34.30
#latitude_max = 71.85
#longitude_min = -24.96
#longitude_max = 39.72
# definition for nodes.json
[[nodes.output.meshviewer]]
enable = false
# The structure version of the output which should be generated (i.e. nodes.json) # The structure version of the output which should be generated (i.e. nodes.json)
# version 1 is accepted by the legacy meshviewer (which is the master branch) # version 1 is accepted by the legacy meshviewer (which is the master branch)
# i.e. https://github.com/ffnord/meshviewer/tree/master # i.e. https://github.com/ffnord/meshviewer/tree/master
# version 2 is accepted by the new versions of meshviewer (which are in legacy develop branch or newer) # version 2 is accepted by the new versions of meshviewer (which are in the legacy develop branch or newer)
# i.e. https://github.com/ffnord/meshviewer/tree/dev # i.e. https://github.com/ffnord/meshviewer/tree/dev
# https://github.com/ffrgb/meshviewer/tree/develop # https://github.com/ffrgb/meshviewer/tree/develop
version = 2 version = 2
@ -57,25 +95,18 @@ nodes_path = "/var/www/html/meshviewer/data/nodes.json"
# path where to store graph.json # path where to store graph.json
graph_path = "/var/www/html/meshviewer/data/graph.json" graph_path = "/var/www/html/meshviewer/data/graph.json"
#[nodes.output.meshviewer.filter]
#no_owner = false
[nodes.output.meshviewer.filter]
# no_owner = true
has_location = true
blacklist = ["vpnid"]
[nodes.output.meshviewer.filter.in_area]
latitude_min = 34.30
latitude_max = 71.85
longitude_min = -24.96
longitude_max = 39.72
# definition for nodelist.json
[[nodes.output.nodelist]] [[nodes.output.nodelist]]
enable = true enable = true
path = "/var/www/html/meshviewer/data/nodelist.json" path = "/var/www/html/meshviewer/data/nodelist.json"
[[nodes.output.meshviewer-ffrgb]] #[nodes.output.nodelist.filter]
enable = true #no_owner = false
path = "/var/www/html/meshviewer/data/meshviewer.json"
[database] [database]
@ -85,12 +116,9 @@ delete_after = "7d"
# how often run the cleaning # how often run the cleaning
delete_interval = "1h" delete_interval = "1h"
## [[database.connection.-]] ## [[database.connection.example]]
# every output: # Each database-connection has its own config block and needs to be enabled by adding:
# needs to be enabled just adding: #enable = true
# enable = true
# could be used multiple times (suggested by the "[[...]]" instatt of "[...]")
# it is useful for e.g. save into a database before and behind a firewall
# Save collected data to InfluxDB. # Save collected data to InfluxDB.
# There are the following measurments: # There are the following measurments: