Blocky: Difference between revisions
imported>TAKYON Blocky is a DNS proxy and ad-blocker for the local network written in Go. |
imported>TAKYON m Correcting formatting errors |
||
Line 4: | Line 4: | ||
== Configuration Examples == | == Configuration Examples == | ||
< | <syntaxHighlight lang=nix> | ||
services.blocky = { | |||
enable = true; | enable = true; | ||
settings = { | settings = { | ||
Line 31: | Line 32: | ||
}; | }; | ||
}; | }; | ||
};</ | }; | ||
</syntaxHighlight> | |||
Line 37: | Line 39: | ||
To add a cache of DNS Requests and Prefetching add: | To add a cache of DNS Requests and Prefetching add: | ||
< | <syntaxHighlight lang=nix> | ||
caching = { | |||
minTime = "5m"; | minTime = "5m"; | ||
maxTime = "30m" | maxTime = "30m" | ||
prefetching = true; | prefetching = true; | ||
};</ | }; | ||
</syntaxHighlight> |