This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
docker-infrastruktur/mapserver/yanic/entrypoint.sh

70 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
mkdir -p /config /data /data/meshviewer
cat << EOF > "/config/yanic.toml"
# Send respondd request to update information
[respondd]
enable = true
# Delay startup until a multiple of the period since zero time
synchronize = "1m"
# how often request per multicast
collect_interval = "1m"
[respondd.sites.l]
domains = []
[respondd.sites.m]
domains = ["meshkit"]
[[respondd.interfaces]]
ifname = "bat0"
[webserver]
enable = false
[nodes]
state_path = "/data/state.json"
prune_after = "120d"
save_interval = "5s"
offline_after = "1h"
# definition for the new more compressed meshviewer.json
[[nodes.output.meshviewer-ffrgb]]
enable = true
path = "/data/meshviewer/meshviewer.json"
[nodes.output.meshviewer-ffrgb.filter]
# WARNING: if it is not set to true, it will publish contact information of other persons
no_owner = false
[[nodes.output.meshviewer]]
enable = false
[[nodes.output.nodelist]]
enable = false
[database]
delete_after = "60d"
delete_interval = "1h"
[[database.connection.influxdb]]
enable = false
[[database.connection.graphite]]
enable = false
[[database.connection.respondd]]
enable = false
[[database.connection.logging]]
enable = false
EOF
exec /bin/yanic serve --config /config/yanic.toml