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