blocky: update config (#795)
Reviewed-on: #795 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
83e12401c2
commit
c656c6b2c7
1 changed files with 12 additions and 9 deletions
|
@ -1,5 +1,10 @@
|
||||||
{{ file_header | default () }}
|
{{ file_header | default () }}
|
||||||
upstreams:
|
upstreams:
|
||||||
|
init:
|
||||||
|
# Configure startup behavior.
|
||||||
|
# accepted: blocking, failOnError, fast
|
||||||
|
# default: blocking
|
||||||
|
strategy: fast
|
||||||
groups:
|
groups:
|
||||||
default:
|
default:
|
||||||
{% for item in blocky_dns_upstream %}
|
{% for item in blocky_dns_upstream %}
|
||||||
|
@ -8,9 +13,6 @@ upstreams:
|
||||||
strategy: parallel_best
|
strategy: parallel_best
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
|
|
||||||
# optional: If true, blocky will fail to start unless at least one upstream server per group is reachable. Default: false
|
|
||||||
startVerifyUpstream: true
|
|
||||||
|
|
||||||
# optional: Determines how blocky will create outgoing connections. This impacts both upstreams, and lists.
|
# optional: Determines how blocky will create outgoing connections. This impacts both upstreams, and lists.
|
||||||
# accepted: dual, v4, v6
|
# accepted: dual, v4, v6
|
||||||
# default: dual
|
# default: dual
|
||||||
|
@ -47,17 +49,18 @@ blocking:
|
||||||
downloads:
|
downloads:
|
||||||
# optional: timeout for list download (each url). Use large values for big lists or slow internet connections
|
# optional: timeout for list download (each url). Use large values for big lists or slow internet connections
|
||||||
# default: 5s
|
# default: 5s
|
||||||
timeout: 5s
|
timeout: 60s
|
||||||
# optional: Maximum download attempts
|
# optional: Maximum download attempts
|
||||||
# default: 3
|
# default: 3
|
||||||
attempts: 3
|
attempts: 5
|
||||||
# optional: Time between the download attempts
|
# optional: Time between the download attempts
|
||||||
# default: 500ms
|
# default: 500ms
|
||||||
cooldown: 500ms
|
cooldown: 10s
|
||||||
# optional: Maximum number of lists to process in parallel.
|
# optional: Maximum number of lists to process in parallel.
|
||||||
# default: 4
|
# default: 4
|
||||||
concurrency: 4
|
concurrency: 16
|
||||||
# optional: if failOnError, application startup will fail if at least one list can't be downloaded/opened
|
# Configure startup behavior.
|
||||||
|
# accepted: blocking, failOnError, fast
|
||||||
# default: blocking
|
# default: blocking
|
||||||
strategy: {{ blocky_blacklists_strategy | default ("blocking") }}
|
strategy: {{ blocky_blacklists_strategy | default ("blocking") }}
|
||||||
# Number of errors allowed in a list before it is considered invalid.
|
# Number of errors allowed in a list before it is considered invalid.
|
||||||
|
@ -119,7 +122,7 @@ caching:
|
||||||
prefetching: true
|
prefetching: true
|
||||||
# prefetch track time window (in duration format)
|
# prefetch track time window (in duration format)
|
||||||
# default: 120
|
# default: 120
|
||||||
prefetchExpires: 120
|
prefetchExpires: 2h
|
||||||
# name queries threshold for prefetch
|
# name queries threshold for prefetch
|
||||||
# default: 5
|
# default: 5
|
||||||
prefetchThreshold: 5
|
prefetchThreshold: 5
|
||||||
|
|
Loading…
Reference in a new issue