forked from Freifunk-Rhein-Neckar/yanicOutputToZonefile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.py
31 lines (22 loc) · 885 Bytes
/
config.example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python3
ZONE_TPL = """; {domainname}
@ 100 IN SOA ns.ffrn.de. {hostmastermail} (
{serial:010d} ; Serial
120 ; Refresh
60 ; Retry
240 ; Expire
120 ) ; Minimum
@ IN NS ns.ffrn.de.
next IN CNAME nextnode.ffrn.de.
"""
LINE_TPL = """{name:<40} IN {type:<7} {data}"""
DOMAIN = "nodes.ffrn.de"
# hostnames which aren't allowed (for example next-node)
NOTALLOWED = ["next"]
# dots in the part before the @ need to be escaped: . becomes \.
HOSTMASTERMAIL = "[email protected]"
# url from where to download the meshviewer.json
MESHVIEWERJSON_URL = "https://map.ffrn.de/data/meshviewer.json"
# local path, only used if MESHVIEWERJSONURL is empty
MESHVIEWERJSON_LOCAL = "/var/www/meshviewer/build/data/meshviewer.json"
GETWARNINGS = True