mirror of
https://github.com/novatiq/packages.git
synced 2026-07-29 23:03:06 +01:00
adblock: reduce memory consumption
* rework shallalist processing: significantly reduce memory consumption during archive extraction and merging. * considerable reduce memory consumption during adblock source processing. * considerable reduce memory consumption of sort (sorts only the domain list and not the bigger dnsmasq file) other changes: * auto detection/defaults for adb_if, adb_dev, adb_ntpsrv, adb_maxloop, adb_maxtime and adb_minspace - these options can be safely removed from previous adblock configuration file * check total memory and main uhttpd configuration on startup * documentation update Signed-off-by: Dirk Brenken <dirk@brenken.org>
This commit is contained in:
@@ -8,51 +8,29 @@ config adblock "global"
|
||||
# needs to be a different subnet from the normal LAN
|
||||
option adb_ip "192.168.2.1"
|
||||
|
||||
# name of the physical adblock network device (check /sys/class/net/<dev>),
|
||||
# should point to the default lan interface
|
||||
option adb_dev "eth0"
|
||||
|
||||
# name of the adblock network interface and uhttpd instance
|
||||
option adb_if "adblock"
|
||||
|
||||
# name of an "always accessible" domain,
|
||||
# this domain will be used for the final nslookup check
|
||||
option adb_domain "heise.de"
|
||||
|
||||
# minimum required space for adlist, backups & logfiles (in kbyte)
|
||||
# if you don't use all adblock sources, you can reduce this value accordingly
|
||||
option adb_minspace "20000"
|
||||
|
||||
# number of retries for wancheck and ntpcheck (see below)
|
||||
option adb_maxloop "5"
|
||||
|
||||
# download timeout for every adblock source (in seconds)
|
||||
option adb_maxtime "60"
|
||||
|
||||
# full path to static domain blacklist file (one domain per line)
|
||||
option adb_blacklist "/etc/adblock/adblock.blacklist"
|
||||
|
||||
# full path to static domain whitelist file (one domain per line)
|
||||
option adb_whitelist "/etc/adblock/adblock.whitelist"
|
||||
|
||||
# list of devices that are allowed for adblock updates (check /sys/class/net/<dev>),
|
||||
# if no one found the last adlist backup will be used,
|
||||
# useful for (mobile) multiwan setups
|
||||
# list of wan devices that are allowed for adblock updates (check /sys/class/net/<dev>),
|
||||
# if no one found the last adlist backup will be restored,
|
||||
# useful only for (mobile) multiwan setups
|
||||
# disabled by default
|
||||
config service "wancheck"
|
||||
option enabled "0"
|
||||
list adb_wanlist "wan"
|
||||
|
||||
# list of ntp time server pools,
|
||||
# check that ntp has adjusted the system time on this device,
|
||||
# will be used for logfile writing and logfile housekeeping
|
||||
# disabled by default
|
||||
config service "ntpcheck"
|
||||
option enabled "0"
|
||||
list adb_ntplist "0.pool.ntp.org"
|
||||
list adb_ntplist "1.pool.ntp.org"
|
||||
list adb_ntplist "2.pool.ntp.org"
|
||||
list adb_ntplist "3.pool.ntp.org"
|
||||
|
||||
# full path to backup file for adlist backups
|
||||
# disabled by default
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# main uhttpd instance listens only to internal LAN
|
||||
#
|
||||
config uhttpd 'main'
|
||||
list listen_http '192.168.1.1:80'
|
||||
list listen_https '192.168.1.1:443'
|
||||
|
||||
Reference in New Issue
Block a user