Move Remote-ACL to config file

Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
Blackyfff 2021-07-27 01:48:18 +02:00
parent c8f327ae70
commit cd0ae2f041
2 changed files with 3 additions and 1 deletions

View File

@ -9,5 +9,7 @@ CommunitySubnets="10.50.0/16 10.83.0/16 fd43:5602:29bd::/48"
### master file in remote needs to be named: db.$CommunityDomain
RemoteLocation="https://git.freifunk-franken.de/freifunk-franken/dns/raw/branch/master/"
RemoteACL="https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf"
### TTL Refresh Retry Expire Minimum
TTLReReExMi="3600 2000 6400 2419200 86400"

2
usr/lib/ffdns/update-public-acl.sh Executable file → Normal file
View File

@ -15,7 +15,7 @@ rm -f "$IncludeFile"
if [ -z "$Tables" ]; then
# this is only a rude fallback and not recommended
# create your own file on a gateway with the community routing tables and use this one
RemoteFile="$(curl -s -S -f "https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf")"
RemoteFile="$(curl -s -S -f "$RemoteACL")"
if [ -n "$RemoteFile" ]; then
echo "$RemoteFile" > "$IncludeFile"
fi