feat(blocky): add default blocklist, default whitelist, default group and enable customised prefetcher

Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten 2024-03-22 10:30:52 +01:00 committed by GitHub
parent 854d550cf6
commit 2664b85685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 28 deletions

View File

@ -159,11 +159,11 @@ clientLookup:
# ips: []
# -- Setup caching
caching:
minTime: 5m
maxTime: 30m
minTime: 15m
maxTime: 0
maxItemsCount: 0
prefetching: false
prefetchExpires: 2h
prefetching: true
prefetchExpires: 12h
prefetchThreshold: 5
prefetchMaxItemsCount: 0
cacheTimeNegative: 30m
@ -190,30 +190,30 @@ blocking:
# -- Sets the block download attempt count
downloadAttempts: 3
# -- Sets the block download cooldown
downloadCooldown: 2s
downloadCooldown: 5s
# -- Set the start strategy (blocking | failOnError | fast)
startStrategy: blocking
startStrategy: fast
# -- Sets how many list-groups can be processed at the same time
processingConcurrency: 4
processingConcurrency: 8
# -- Add blocky whitelists
whitelist: []
# - name: ads
# lists:
# - https://someurl.com/list.txt
# - /somefile.txt
whitelist:
- name: default
lists:
- https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/optional-list.txt
- https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt
- https://raw.githubusercontent.com/rahilpathan/pihole-whitelist/main/1.LowWL.txt
# -- Blocky blacklists
blacklist: []
# - name: ads
# lists:
# - https://someurl.com/list.txt
# - /somefile.txt
blacklist:
- name: default
lists:
- https://big.oisd.nl/domainswild
# -- Blocky clientGroupsBlock
clientGroupsBlock: []
# - name: default
# groups:
# - ads
clientGroupsBlock:
- name: default
groups:
- default
# -- configure using hostsfile for lookups
# Allows for using the hosts configured in kubernetes and such
hostsFile:
@ -221,13 +221,7 @@ hostsFile:
filePath: /etc/hosts
hostsTTL: 60m
refreshPeriod: 30m
## TODO: add this with postgresql support as well
# queryLog:
# type: csv
# target: /logs
# logRetentionDays: 0
# creationAttempts: 3
# CreationCooldown: 2
podOptions:
automountServiceAccountToken: true
portal: